| Package | Description |
|---|---|
| java.security |
Provides the classes and interfaces for the security framework.
|
| java.security.cert |
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
|
| java.security.interfaces |
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.
|
| javax.crypto.interfaces |
Provides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3.
|
| javax.security.cert |
Provides classes for public key certificates.
|
| javax.xml.crypto.dsig.keyinfo |
Classes for parsing and processing
KeyInfo elements and structures.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract PublicKey |
KeyFactorySpi.engineGeneratePublic(KeySpec
Generates a public key object from the provided key specification (key material).
|
PublicKey |
KeyFactory.generatePublic(KeySpec
Generates a public key object from the provided key specification (key material).
|
PublicKey |
KeyPair.getPublic()
Returns a reference to the public key component of this key pair.
|
PublicKey |
Identity.getPublicKey()
Deprecated.
Returns this identity's public key.
|
PublicKey |
Certificate.getPublicKey()
Deprecated.
Returns the key of the principal-key pair being guaranteed by the guarantor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
SignatureSpi.engineInitVerify(PublicKey
Initializes this signature object with the specified public key for verification operations.
|
abstract Identity |
IdentityScope.getIdentity(PublicKey
Deprecated.
Retrieves the identity with the specified public key.
|
void |
Signature.initVerify(PublicKey
Initializes this object for verification.
|
void |
Identity.setPublicKey(PublicKey
Deprecated.
Sets this identity's public key.
|
boolean |
SignedObject.verify(PublicKey
Verifies that the signature in this SignedObject is the valid signature for the object stored inside, with the given verification key, using the designated verification engine.
|
| Constructor and Description | |
|---|---|
KeyPair(PublicKey
Constructs a key pair from the given public key and private key.
|
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
TrustAnchor.getCAPublicKey()
Returns the public key of the most-trusted CA.
|
PublicKey |
PKIXCertPathValidatorResult.getPublicKey()
Returns the public key of the subject (target) of the certification path, including any inherited public key parameters if applicable.
|
abstract PublicKey |
Certificate.getPublicKey()
Gets the public key from this certificate.
|
PublicKey |
X509CertSelector.getSubjectPublicKey()
Returns the subjectPublicKey criterion.
|
| Modifier and Type | Method and Description |
|---|---|
void |
X509CertSelector.setSubjectPublicKey(PublicKey
Sets the subjectPublicKey criterion.
|
abstract void |
X509CRL.verify(PublicKey
Verifies that this CRL was signed using the private key that corresponds to the given public key.
|
abstract void |
Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
void |
X509CRL.verify(PublicKey
Verifies that this CRL was signed using the private key that corresponds to the given public key.
|
void |
Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
void |
X509Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
abstract void |
X509CRL.verify(PublicKey
Verifies that this CRL was signed using the private key that corresponds to the given public key.
|
abstract void |
Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
| Constructor and Description | |
|---|---|
PKIXCertPathBuilderResult(CertPath
Creates an instance of
PKIXCertPathBuilderResult containing the specified parameters.
|
|
PKIXCertPathValidatorResult(TrustAnchor
Creates an instance of
PKIXCertPathValidatorResult containing the specified parameters.
|
|
TrustAnchor(String
Creates an instance of
TrustAnchor where the most-trusted CA is specified as a distinguished name and public key.
|
|
TrustAnchor(X500Principal
Creates an instance of
TrustAnchor where the most-trusted CA is specified as an X500Principal and public key.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
DSAPublicKey
The interface to a DSA public key.
|
interface |
ECPublicKey
The interface to an elliptic curve (EC) public key.
|
interface |
RSAPublicKey
The interface to an RSA public key.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
DHPublicKey
The interface to a Diffie-Hellman public key.
|
| Modifier and Type | Method and Description |
|---|---|
abstract PublicKey |
Certificate.getPublicKey()
Gets the public key from this certificate.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
abstract void |
Certificate.verify(PublicKey
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
KeyValue.getPublicKey()
Returns the public key of this
KeyValue.
|
| Modifier and Type | Method and Description |
|---|---|
abstract KeyValue |
KeyInfoFactory.newKeyValue(PublicKey
Creates a
KeyValue from the specified public key.
|