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.

public interface PrivateKey extends Key {
// Public Constants
1.2 public static final long serialVersionUID; =6034044314589513430
}
Implementations
java.security.interfaces.DSAPrivateKey,
java.security.interfaces.ECPrivateKey,
java.security.interfaces.RSAPrivateKey,
javax.crypto.interfaces.DHPrivateKey
Passed To
KeyPair.KeyPair( ),
KeyStore.PrivateKeyEntry.PrivateKeyEntry( ),
Signature.initSign( ),
SignatureSpi.engineInitSign( ),
SignedObject.SignedObject( ),
javax.security.auth.x500.X500PrivateCredential.X500PrivateCredential(
)
Returned By
KeyFactory.generatePrivate( ),
KeyFactorySpi.engineGeneratePrivate( ),
KeyPair.getPrivate( ),
KeyStore.PrivateKeyEntry.getPrivateKey( ),
Signer.getPrivateKey( ),
javax.net.ssl.X509KeyManager.getPrivateKey( ),
javax.security.auth.x500.X500PrivateCredential.getPrivateKey(
)
|