Uses of Interface
java.security.PublicKey
Packages that use PublicKey
Package
Description
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
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 public key certificates.
Classes for parsing and processing
KeyInfo elements and structures.-
Uses of PublicKey in java.security
Methods in java.security that return PublicKeyModifier and TypeMethodDescriptionprotected abstract PublicKeyKeyFactorySpi.engineGeneratePublic(KeySpec keySpec) Generates a public key object from the provided key specification (key material).final PublicKeyKeyFactory.generatePublic(KeySpec keySpec) Generates a public key object from the provided key specification (key material).KeyPair.getPublic()Returns a reference to the public key component of this key pair.Certificate.getPublicKey()Deprecated, for removal: This API element is subject to removal in a future version.Returns the key of the principal-key pair being guaranteed by the guarantor.Identity.getPublicKey()Deprecated, for removal: This API element is subject to removal in a future version.Returns this identity's public key.Methods in java.security with parameters of type PublicKeyModifier and TypeMethodDescriptionprotected abstract voidSignatureSpi.engineInitVerify(PublicKey publicKey) Initializes thisSignatureobject with the specified public key for verification operations.abstract IdentityIdentityScope.getIdentity(PublicKey key) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves theidentitywith the specified public key.final voidSignature.initVerify(PublicKey publicKey) Initializes this object for verification.voidIdentity.setPublicKey(PublicKey key) Deprecated, for removal: This API element is subject to removal in a future version.Sets this identity's public key.booleanVerifies that the signature in thisSignedObjectis the valid signature for the object stored inside, with the given verification key, using the designated verification engine.Constructors in java.security with parameters of type PublicKeyModifierConstructorDescriptionKeyPair(PublicKey publicKey, PrivateKey privateKey) Constructs a key pair from the given public key and private key. -
Uses of PublicKey in java.security.cert
Methods in java.security.cert that return PublicKeyModifier and TypeMethodDescriptionfinal PublicKeyTrustAnchor.getCAPublicKey()Returns the public key of the most-trusted CA.abstract PublicKeyCertificate.getPublicKey()Gets the public key from this certificate.PKIXCertPathValidatorResult.getPublicKey()Returns the public key of the subject (target) of the certification path, including any inherited public key parameters if applicable.X509CertSelector.getSubjectPublicKey()Returns the subjectPublicKey criterion.Methods in java.security.cert with parameters of type PublicKeyModifier and TypeMethodDescriptionvoidX509CertSelector.setSubjectPublicKey(PublicKey key) Sets the subjectPublicKey criterion.abstract voidVerifies that this certificate was signed using the private key that corresponds to the specified public key.abstract voidVerifies that this certificate was signed using the private key that corresponds to the specified public key.voidVerifies that this certificate was signed using the private key that corresponds to the specified public key.voidVerifies that this certificate was signed using the private key that corresponds to the specified public key.abstract voidVerifies that this CRL was signed using the private key that corresponds to the given public key.abstract voidVerifies that this CRL was signed using the private key that corresponds to the given public key.voidVerifies that this CRL was signed using the private key that corresponds to the given public key.Constructors in java.security.cert with parameters of type PublicKeyModifierConstructorDescriptionPKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey) Creates an instance ofPKIXCertPathBuilderResultcontaining the specified parameters.PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey) Creates an instance ofPKIXCertPathValidatorResultcontaining the specified parameters.TrustAnchor(String caName, PublicKey pubKey, byte[] nameConstraints) Creates an instance ofTrustAnchorwhere the most-trusted CA is specified as a distinguished name and public key.TrustAnchor(X500Principal caPrincipal, PublicKey pubKey, byte[] nameConstraints) Creates an instance ofTrustAnchorwhere the most-trusted CA is specified as an X500Principal and public key. -
Uses of PublicKey in java.security.interfaces
Subinterfaces of PublicKey in java.security.interfacesModifier and TypeInterfaceDescriptioninterfaceThe interface to a DSA public key.interfaceThe interface to an elliptic curve (EC) public key.interfaceAn interface for an elliptic curve public key as defined by RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA).interfaceThe interface to an RSA public key.interfaceAn interface for an elliptic curve public key as defined by RFC 7748. -
Uses of PublicKey in javax.crypto
Methods in javax.crypto with parameters of type PublicKeyModifier and TypeMethodDescriptionKEMSpi.engineNewEncapsulator(PublicKey publicKey, AlgorithmParameterSpec spec, SecureRandom secureRandom) Creates a KEM encapsulator on the KEM sender side.KEM.newEncapsulator(PublicKey publicKey) Creates a KEM encapsulator on the KEM sender side.KEM.newEncapsulator(PublicKey publicKey, SecureRandom secureRandom) Creates a KEM encapsulator on the KEM sender side.KEM.newEncapsulator(PublicKey publicKey, AlgorithmParameterSpec spec, SecureRandom secureRandom) Creates a KEM encapsulator on the KEM sender side. -
Uses of PublicKey in javax.crypto.interfaces
Subinterfaces of PublicKey in javax.crypto.interfacesModifier and TypeInterfaceDescriptioninterfaceThe interface to a Diffie-Hellman public key. -
Uses of PublicKey in javax.security.cert
Methods in javax.security.cert that return PublicKeyModifier and TypeMethodDescriptionabstract PublicKeyCertificate.getPublicKey()Deprecated, for removal: This API element is subject to removal in a future version.Gets the public key from this certificate.Methods in javax.security.cert with parameters of type PublicKeyModifier and TypeMethodDescriptionabstract voidDeprecated, for removal: This API element is subject to removal in a future version.Verifies that this certificate was signed using the private key that corresponds to the specified public key.abstract voidDeprecated, for removal: This API element is subject to removal in a future version.Verifies that this certificate was signed using the private key that corresponds to the specified public key. -
Uses of PublicKey in javax.xml.crypto.dsig.keyinfo
Methods in javax.xml.crypto.dsig.keyinfo that return PublicKeyModifier and TypeMethodDescriptionKeyValue.getPublicKey()Returns the public key of thisKeyValue.Methods in javax.xml.crypto.dsig.keyinfo with parameters of type PublicKeyModifier and TypeMethodDescriptionabstract KeyValueKeyInfoFactory.newKeyValue(PublicKey key) Creates aKeyValuefrom the specified public key.