| Package | Description |
|---|---|
| java.security |
Contains core language classes related to permission management.
|
| java.security.cert |
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
|
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
KeyFactory.generatePublic(KeySpec 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.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
SignatureSpi.engineInitVerify(PublicKey publicKey)
Initializes this signature object with the specified public key for verification operations.
|
void |
Signature.initVerify(PublicKey publicKey)
Initializes this object for verification.
|
| Constructor and Description |
|---|
KeyPair(PublicKey publicKey,
PrivateKey privateKey)
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.
|
abstract PublicKey |
Certificate.getPublicKey()
Gets the public key from this certificate.
|
PublicKey |
PKIXCertPathValidatorResult.getPublicKey()
Returns the public key of the subject (target) of the certification
path, including any inherited public key parameters if applicable.
|
PublicKey |
X509CertSelector.getSubjectPublicKey()
Returns the subjectPublicKey criterion.
|
| Modifier and Type | Method and Description |
|---|---|
void |
X509CertSelector.setSubjectPublicKey(PublicKey key)
Sets the subjectPublicKey criterion.
|
abstract void |
X509CRL.verify(PublicKey key)
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
|
abstract void |
Certificate.verify(PublicKey key)
Verifies that this certificate was signed using the
private key that corresponds to the specified public key.
|
abstract void |
Certificate.verify(PublicKey key,
java.lang.String sigProvider)
Verifies that this certificate was signed using the
private key that corresponds to the specified public key.
|
| Constructor and Description |
|---|
PKIXCertPathBuilderResult(CertPath certPath,
TrustAnchor trustAnchor,
PolicyNode policyTree,
PublicKey subjectPublicKey)
Creates an instance of
PKIXCertPathBuilderResult
containing the specified parameters. |
PKIXCertPathValidatorResult(TrustAnchor trustAnchor,
PolicyNode policyTree,
PublicKey subjectPublicKey)
Creates an instance of
PKIXCertPathValidatorResult
containing the specified parameters. |
TrustAnchor(java.lang.String caName,
PublicKey pubKey,
byte[] nameConstraints)
Creates an instance of
TrustAnchor where the
most-trusted CA is specified as a distinguished name and public key. |
TrustAnchor(X500Principal caPrincipal,
PublicKey pubKey,
byte[] nameConstraints)
Creates an instance of
TrustAnchor where the
most-trusted CA is specified as an X500Principal and public key. |