Uses of Interface
java.security.PrivateKey
Packages that use PrivateKey
Package
Description
Provides the classes and interfaces for the security framework.
Provides interfaces for generating RSA (Rivest, Shamir and
Adleman AsymmetricCipher algorithm)
keys as defined in the RSA Laboratory Technical Note
PKCS#1, and DSA (Digital Signature
Algorithm) keys as defined in NIST's FIPS-186.
Provides the classes and interfaces for cryptographic
operations.
Provides interfaces for Diffie-Hellman keys as defined in RSA
Laboratories' PKCS #3.
Provides classes for the secure socket package.
This package contains the classes that should be used to store
X500 Principal and X500 Private Credentials in a
Subject.
This package defines APIs for signing jar files.
-
Uses of PrivateKey in java.security
Methods in java.security that return PrivateKeyModifier and TypeMethodDescriptionprotected abstract PrivateKeyKeyFactorySpi.engineGeneratePrivate(KeySpec keySpec) Generates a private key object from the provided key specification (key material).final PrivateKeyKeyFactory.generatePrivate(KeySpec keySpec) Generates a private key object from the provided key specification (key material).KeyPair.getPrivate()Returns a reference to the private key component of this key pair.KeyStore.PrivateKeyEntry.getPrivateKey()Gets thePrivateKeyfrom this entry.Signer.getPrivateKey()Deprecated, for removal: This API element is subject to removal in a future version.Returns this signer's private key.Methods in java.security with parameters of type PrivateKeyModifier and TypeMethodDescriptionprotected abstract voidSignatureSpi.engineInitSign(PrivateKey privateKey) Initializes this signature object with the specified private key for signing operations.protected voidSignatureSpi.engineInitSign(PrivateKey privateKey, SecureRandom random) Initializes this signature object with the specified private key and source of randomness for signing operations.final voidSignature.initSign(PrivateKey privateKey) Initialize this object for signing.final voidSignature.initSign(PrivateKey privateKey, SecureRandom random) Initialize this object for signing.Constructors in java.security with parameters of type PrivateKeyModifierConstructorDescriptionKeyPair(PublicKey publicKey, PrivateKey privateKey) Constructs a key pair from the given public key and private key.PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) Constructs aPrivateKeyEntrywith aPrivateKeyand corresponding certificate chain.PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain, Set<KeyStore.Entry.Attribute> attributes) Constructs aPrivateKeyEntrywith aPrivateKeyand corresponding certificate chain and associated entry attributes.SignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine) Constructs a SignedObject from any Serializable object. -
Uses of PrivateKey in java.security.interfaces
Subinterfaces of PrivateKey in java.security.interfacesModifier and TypeInterfaceDescriptioninterfaceThe standard interface to a DSA private key.interfaceThe interface to an elliptic curve (EC) private key.interfaceAn interface for an elliptic curve private key as defined by RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA).interfaceThe interface to an RSA multi-prime private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values.interfaceThe interface to an RSA private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values.interfaceThe interface to an RSA private key.interfaceAn interface for an elliptic curve private key as defined by RFC 7748. -
Uses of PrivateKey in javax.crypto
Methods in javax.crypto with parameters of type PrivateKeyModifier and TypeMethodDescriptionKEMSpi.engineNewDecapsulator(PrivateKey privateKey, AlgorithmParameterSpec spec) Creates a KEM decapsulator on the KEM receiver side.KEM.newDecapsulator(PrivateKey privateKey) Creates a KEM decapsulator on the KEM receiver side.KEM.newDecapsulator(PrivateKey privateKey, AlgorithmParameterSpec spec) Creates a KEM decapsulator on the KEM receiver side. -
Uses of PrivateKey in javax.crypto.interfaces
Subinterfaces of PrivateKey in javax.crypto.interfacesModifier and TypeInterfaceDescriptioninterfaceThe interface to a Diffie-Hellman private key. -
Uses of PrivateKey in javax.net.ssl
Methods in javax.net.ssl that return PrivateKeyModifier and TypeMethodDescriptionX509KeyManager.getPrivateKey(String alias) Returns the key associated with the given alias. -
Uses of PrivateKey in javax.security.auth.x500
Methods in javax.security.auth.x500 that return PrivateKeyConstructors in javax.security.auth.x500 with parameters of type PrivateKeyModifierConstructorDescriptionX500PrivateCredential(X509Certificate cert, PrivateKey key) Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias.X500PrivateCredential(X509Certificate cert, PrivateKey key, String alias) Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias. -
Uses of PrivateKey in jdk.security.jarsigner
Methods in jdk.security.jarsigner with parameters of type PrivateKeyModifier and TypeMethodDescriptionstatic StringJarSigner.Builder.getDefaultSignatureAlgorithm(PrivateKey key) Gets the default signature algorithm for a private key.Constructors in jdk.security.jarsigner with parameters of type PrivateKeyModifierConstructorDescriptionBuilder(PrivateKey privateKey, CertPath certPath) Creates aJarSigner.Builderobject with a private key and a certification path.