This interface represents a private cryptographic key. It extends the Key interface, but does not add any new methods . The interface exists in order to create a strong distinction between private and public keys. See also PublicKey . Figure 14-30. java.security.PrivateKeypublic interface PrivateKey extends Key { // Public Constants 1.2 public static final long serialVersionUID ; =6034044314589513430 } Implementationsjava.security.interfaces.DSAPrivateKey , java.security.interfaces.ECPrivateKey , java.security.interfaces.RSAPrivateKey , javax.crypto.interfaces.DHPrivateKey Passed ToKeyPair.KeyPair( ) , KeyStore.PrivateKeyEntry.PrivateKeyEntry( ) , Signature.initSign( ) , SignatureSpi.engineInitSign( ) , SignedObject.SignedObject( ) , javax.security.auth.x500.X500PrivateCredential.X500PrivateCredential( ) Returned ByKeyFactory.generatePrivate( ) , KeyFactorySpi.engineGeneratePrivate( ) , KeyPair.getPrivate( ) , KeyStore.PrivateKeyEntry.getPrivateKey( ) , Signer.getPrivateKey( ) , javax.net.ssl.X509KeyManager.getPrivateKey( ) , javax.security.auth.x500.X500PrivateCredential.getPrivateKey( ) |