| Package | Description |
|---|---|
| java.net |
Provides the classes for implementing networking applications.
|
| 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.util.jar |
Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file.
|
| javax.crypto |
Provides the classes and interfaces for cryptographic operations.
|
| javax.net.ssl |
Provides classes for the secure socket package.
|
| Modifier and Type | Method and Description |
|---|---|
Certificate |
JarURLConnection.getCertificates()
Return the Certificate object for this connection if the URL for it points to a JAR file entry, null otherwise.
|
| Modifier and Type | Method and Description |
|---|---|
abstract List |
SecureCacheResponse.getLocalCertificateChain()
Returns the certificate chain that were sent to the server during handshaking of the original connection that retrieved the network resource.
|
abstract List |
SecureCacheResponse.getServerCertificateChain()
Returns the server's certificate chain, which was established as part of defining the session in the original connection that retrieved the network resource, from cache.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Certificate |
KeyStoreSpi.engineGetCertificate(String
Returns the certificate associated with the given alias.
|
abstract Certificate |
KeyStoreSpi.engineGetCertificateChain(String
Returns the certificate chain associated with the given alias.
|
Certificate |
KeyStore.PrivateKeyEntry.getCertificate()
Gets the end entity
Certificate from the certificate chain in this entry.
|
Certificate |
KeyStore.getCertificate(String
Returns the certificate associated with the given alias.
|
Certificate |
KeyStore.PrivateKeyEntry.getCertificateChain()
Gets the
Certificate chain from this entry.
|
Certificate |
KeyStore.getCertificateChain(String
Returns the certificate chain associated with the given alias.
|
Certificate |
CodeSource.getCertificates()
Returns the certificates associated with this CodeSource.
|
Certificate |
KeyStore.TrustedCertificateEntry.getTrustedCertificate()
Gets the trusted
Certficate from this entry.
|
Certificate |
UnresolvedPermission.getUnresolvedCerts()
Get the signer certificates (without any supporting chain) for the underlying permission that has not been resolved.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
KeyStoreSpi.engineGetCertificateAlias(Certificate
Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.
|
abstract void |
KeyStoreSpi.engineSetCertificateEntry(String
Assigns the given certificate to the given alias.
|
abstract void |
KeyStoreSpi.engineSetKeyEntry(String
Assigns the given key (that has already been protected) to the given alias.
|
abstract void |
KeyStoreSpi.engineSetKeyEntry(String
Assigns the given key to the given alias, protecting it with the given password.
|
String |
KeyStore.getCertificateAlias(Certificate
Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.
|
void |
Signature.initVerify(Certificate
Initializes this object for verification, using the public key from the given certificate.
|
void |
KeyStore.setCertificateEntry(String
Assigns the given trusted certificate to the given alias.
|
void |
KeyStore.setKeyEntry(String
Assigns the given key (that has already been protected) to the given alias.
|
void |
KeyStore.setKeyEntry(String
Assigns the given key to the given alias, protecting it with the given password.
|
| Constructor and Description | |
|---|---|
CodeSource(URL
Constructs a CodeSource and associates it with the specified location and set of certificates.
|
|
PrivateKeyEntry(PrivateKey
Constructs a
PrivateKeyEntry with a
PrivateKey and corresponding certificate chain.
|
|
PrivateKeyEntry(PrivateKey
Constructs a
PrivateKeyEntry with a
PrivateKey and corresponding certificate chain and associated entry attributes.
|
|
TrustedCertificateEntry(Certificate
Constructs a
TrustedCertificateEntry with a trusted
Certificate.
|
|
TrustedCertificateEntry(Certificate
Constructs a
TrustedCertificateEntry with a trusted
Certificate and associated entry attributes.
|
|
UnresolvedPermission(String
Creates a new UnresolvedPermission containing the permission information needed later to actually create a Permission of the specified class, when the permission is resolved.
|
| Modifier and Type | Class and Description |
|---|---|
class |
X509Certificate
Abstract class for X.509 certificates.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Certificate |
CertificateFactorySpi.engineGenerateCertificate(InputStream
Generates a certificate object and initializes it with the data read from the input stream
inStream.
|
Certificate |
CertificateFactory.generateCertificate(InputStream
Generates a certificate object and initializes it with the data read from the input stream
inStream.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Collection |
CertificateFactorySpi.engineGenerateCertificates(InputStream
Returns a (possibly empty) collection view of the certificates read from the given input stream
inStream.
|
abstract Collection |
CertStoreSpi.engineGetCertificates(CertSelector
Returns a
Collection of
Certificates that match the specified selector.
|
Collection |
CertificateFactory.generateCertificates(InputStream
Returns a (possibly empty) collection view of the certificates read from the given input stream
inStream.
|
abstract List |
CertPath.getCertificates()
Returns the list of certificates in this certification path.
|
Collection |
CertStore.getCertificates(CertSelector
Returns a
Collection of
Certificates that match the specified selector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PKIXCertPathChecker.check(Certificate
Performs the check(s) on the specified certificate using its internal state.
|
void |
CertPathChecker.check(Certificate
Performs the check(s) on the specified certificate using its internal state.
|
abstract void |
PKIXCertPathChecker.check(Certificate
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
Checks whether the given certificate is on this CRL.
|
boolean |
CertSelector.match(Certificate
Decides whether a
Certificate should be selected.
|
boolean |
X509CertSelector.match(Certificate
Decides whether a
Certificate should be selected.
|
| Modifier and Type | Method and Description |
|---|---|
CertPath |
CertificateFactorySpi.engineGenerateCertPath(List
Generates a
CertPath object and initializes it with a
List of
Certificates.
|
CertPath |
CertificateFactory.generateCertPath(List
Generates a
CertPath object and initializes it with a
List of
Certificates.
|
| Modifier and Type | Method and Description |
|---|---|
Certificate |
JarEntry.getCertificates()
Returns the
Certificate objects for this entry, or
null if none.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Cipher.init(int opmode, Certificate
Initializes this cipher with the public key from the given certificate.
|
void |
Cipher.init(int opmode, Certificate
Initializes this cipher with the public key from the given certificate and a source of randomness.
|
| Modifier and Type | Method and Description |
|---|---|
Certificate |
HandshakeCompletedEvent.getLocalCertificates()
Returns the certificate(s) that were sent to the peer during handshaking.
|
abstract Certificate |
HttpsURLConnection.getLocalCertificates()
Returns the certificate(s) that were sent to the server during handshaking.
|
Certificate |
SSLSession.getLocalCertificates()
Returns the certificate(s) that were sent to the peer during handshaking.
|
Certificate |
HandshakeCompletedEvent.getPeerCertificates()
Returns the identity of the peer which was established as part of defining the session.
|
Certificate |
SSLSession.getPeerCertificates()
Returns the identity of the peer which was established as part of defining the session.
|
abstract Certificate |
HttpsURLConnection.getServerCertificates()
Returns the server's certificate chain which was established as part of defining the session.
|