| 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.
|
| javax.crypto |
| Modifier and Type | Method and Description |
|---|---|
abstract Certificate |
KeyStoreSpi.engineGetCertificate(java.lang.String alias)
Returns the certificate associated with the given alias.
|
abstract Certificate[] |
KeyStoreSpi.engineGetCertificateChain(java.lang.String alias)
Returns the certificate chain associated with the given alias.
|
Certificate |
KeyStore.getCertificate(java.lang.String alias)
Returns the certificate associated with the given alias.
|
Certificate[] |
KeyStore.getCertificateChain(java.lang.String alias)
Returns the certificate chain associated with the given alias.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
KeyStoreSpi.engineSetCertificateEntry(java.lang.String alias,
Certificate cert)
Assigns the given certificate to the given alias.
|
abstract void |
KeyStoreSpi.engineSetKeyEntry(java.lang.String alias,
byte[] key,
Certificate[] chain)
Assigns the given key (that has already been protected) to the given alias.
|
void |
Signature.initVerify(Certificate certificate)
Initializes this object for verification, using the public key from the given certificate.
|
void |
KeyStore.setCertificateEntry(java.lang.String alias,
Certificate cert)
Assigns the given trusted certificate to the given alias.
|
void |
KeyStore.setKeyEntry(java.lang.String alias,
byte[] key,
Certificate[] chain)
Assigns the given key (that has already been protected) to the given alias.
|
void |
KeyStore.setKeyEntry(java.lang.String alias,
Key key,
char[] password,
Certificate[] chain)
Assigns the given key to the given alias, protecting it with the given
password.
|
| Modifier and Type | Class and Description |
|---|---|
class |
X509Certificate
Abstract class for X.509 certificates.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Certificate |
CertificateFactorySpi.engineGenerateCertificate(java.io.InputStream inStream)
Generates a certificate object and initializes it with
the data read from the input stream
inStream. |
Certificate |
CertificateFactory.generateCertificate(java.io.InputStream inStream)
Generates a certificate object and initializes it with
the data read from the input stream
inStream. |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.Collection<? extends Certificate> |
CertificateFactorySpi.engineGenerateCertificates(java.io.InputStream inStream)
Returns a (possibly empty) collection view of the certificates read
from the given input stream
inStream. |
abstract java.util.Collection<? extends Certificate> |
CertStoreSpi.engineGetCertificates(CertSelector selector)
Returns a
Collection of Certificates that
match the specified selector. |
java.util.Collection<? extends Certificate> |
CertificateFactory.generateCertificates(java.io.InputStream inStream)
Returns a (possibly empty) collection view of the certificates read
from the given input stream
inStream. |
abstract java.util.List<? extends Certificate> |
CertPath.getCertificates()
Returns the list of certificates in this certification path.
|
java.util.Collection<? extends Certificate> |
CertStore.getCertificates(CertSelector selector)
Returns a
Collection of Certificates that
match the specified selector. |
| Modifier and Type | Method and Description |
|---|---|
void |
CertPathChecker.check(Certificate cert)
Performs the check(s) on the specified certificate using its internal
state.
|
void |
PKIXCertPathChecker.check(Certificate cert)
Performs the check(s) on the specified certificate using its internal
state.
|
abstract void |
PKIXCertPathChecker.check(Certificate cert,
java.util.Collection<java.lang.String> unresolvedCritExts)
Performs the check(s) on the specified certificate using its internal
state and removes any critical extensions that it processes from the
specified collection of OID strings that represent the unresolved
critical extensions.
|
abstract boolean |
CRL.isRevoked(Certificate cert)
Checks whether the given certificate is on this CRL.
|
boolean |
CertSelector.match(Certificate cert)
Decides whether a
Certificate should be selected. |
boolean |
X509CertSelector.match(Certificate cert)
Decides whether a
Certificate should be selected. |
| Modifier and Type | Method and Description |
|---|---|
CertPath |
CertificateFactorySpi.engineGenerateCertPath(java.util.List<? extends Certificate> certificates)
Generates a
CertPath object and initializes it with
a List of Certificates. |
CertPath |
CertificateFactory.generateCertPath(java.util.List<? extends Certificate> certificates)
Generates a
CertPath object and initializes it with
a List of Certificates. |
| Modifier and Type | Method and Description |
|---|---|
void |
Cipher.init(int opmode,
Certificate certificate)
Initializes this cipher with the public key from the given certificate.
|
void |
Cipher.init(int opmode,
Certificate certificate,
SecureRandom random)
Initializes this cipher with the public key from the given certificate and a source of randomness.
|