Name
PrivateKey
Synopsis
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.PrivateKey
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(
)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access