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(
)
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.