Uses of Class
java.security.cert.Certificate
Package
Description
Provides the classes for implementing networking applications.
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 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.
Provides the classes and interfaces for cryptographic
operations.
Provides classes for the secure socket package.
-
Uses of Certificate in java.net
Modifier and TypeMethodDescriptionJarURLConnection.getCertificates()
Returns the Certificate objects for this connection if the URL for it points to a JAR file entry, null otherwise.Modifier and TypeMethodDescriptionabstract List
<Certificate> 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
<Certificate> 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. -
Uses of Certificate in java.security
Modifier and TypeMethodDescriptionabstract Certificate
KeyStoreSpi.engineGetCertificate
(String alias) Returns the certificate associated with the given alias.abstract Certificate[]
KeyStoreSpi.engineGetCertificateChain
(String alias) Returns the certificate chain associated with the given alias.final Certificate
KeyStore.getCertificate
(String alias) Returns the certificate associated with the given alias.KeyStore.PrivateKeyEntry.getCertificate()
Gets the end entityCertificate
from the certificate chain in this entry.final Certificate[]
KeyStore.getCertificateChain
(String alias) Returns the certificate chain associated with the given alias.KeyStore.PrivateKeyEntry.getCertificateChain()
Gets theCertificate
chain from this entry.final Certificate[]
CodeSource.getCertificates()
Returns the certificates associated with thisCodeSource
.KeyStore.TrustedCertificateEntry.getTrustedCertificate()
Gets the trustedCertificate
from this entry.UnresolvedPermission.getUnresolvedCerts()
Get the signer certificates (without any supporting chain) for the underlying permission that has not been resolved.Modifier and TypeMethodDescriptionabstract String
KeyStoreSpi.engineGetCertificateAlias
(Certificate cert) Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.abstract void
KeyStoreSpi.engineSetCertificateEntry
(String alias, Certificate cert) Assigns the given certificate to the given alias.abstract void
KeyStoreSpi.engineSetKeyEntry
(String alias, byte[] key, Certificate[] chain) Assigns the given key (that has already been protected) to the given alias.abstract void
KeyStoreSpi.engineSetKeyEntry
(String alias, Key key, char[] password, Certificate[] chain) Assigns the given key to the given alias, protecting it with the given password.final String
KeyStore.getCertificateAlias
(Certificate cert) Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.final void
Signature.initVerify
(Certificate certificate) Initializes this object for verification, using the public key from the given certificate.final void
KeyStore.setCertificateEntry
(String alias, Certificate cert) Assigns the given trusted certificate to the given alias.final void
KeyStore.setKeyEntry
(String alias, byte[] key, Certificate[] chain) Assigns the given key (that has already been protected) to the given alias.final void
KeyStore.setKeyEntry
(String alias, Key key, char[] password, Certificate[] chain) Assigns the given key to the given alias, protecting it with the given password.ModifierConstructorDescriptionCodeSource
(URL url, Certificate[] certs) Constructs aCodeSource
and associates it with the specified location and set of certificates.PrivateKeyEntry
(PrivateKey privateKey, Certificate[] chain) Constructs aPrivateKeyEntry
with aPrivateKey
and corresponding certificate chain.PrivateKeyEntry
(PrivateKey privateKey, Certificate[] chain, Set<KeyStore.Entry.Attribute> attributes) Constructs aPrivateKeyEntry
with aPrivateKey
and corresponding certificate chain and associated entry attributes.TrustedCertificateEntry
(Certificate trustedCert) Constructs aTrustedCertificateEntry
with a trustedCertificate
.TrustedCertificateEntry
(Certificate trustedCert, Set<KeyStore.Entry.Attribute> attributes) Constructs aTrustedCertificateEntry
with a trustedCertificate
and associated entry attributes.UnresolvedPermission
(String type, String name, String actions, Certificate[] certs) Creates a newUnresolvedPermission
containing the permission information needed later to actually create a Permission of the specified class, when the permission is resolved. -
Uses of Certificate in java.security.cert
Modifier and TypeMethodDescriptionabstract Certificate
CertificateFactorySpi.engineGenerateCertificate
(InputStream inStream) Generates a certificate object and initializes it with the data read from the input streaminStream
.final Certificate
CertificateFactory.generateCertificate
(InputStream inStream) Generates a certificate object and initializes it with the data read from the input streaminStream
.Modifier and TypeMethodDescriptionabstract Collection
<? extends Certificate> CertificateFactorySpi.engineGenerateCertificates
(InputStream inStream) Returns a (possibly empty) collection view of the certificates read from the given input streaminStream
.abstract Collection
<? extends Certificate> CertStoreSpi.engineGetCertificates
(CertSelector selector) Returns aCollection
ofCertificate
s that match the specified selector.final Collection
<? extends Certificate> CertificateFactory.generateCertificates
(InputStream inStream) Returns a (possibly empty) collection view of the certificates read from the given input streaminStream
.abstract List
<? extends Certificate> CertPath.getCertificates()
Returns the list of certificates in this certification path.final Collection
<? extends Certificate> CertStore.getCertificates
(CertSelector selector) Returns aCollection
ofCertificate
s that match the specified selector.Modifier and TypeMethodDescriptionvoid
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, Collection<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 aCertificate
should be selected.boolean
X509CertSelector.match
(Certificate cert) Decides whether aCertificate
should be selected.Modifier and TypeMethodDescriptionCertificateFactorySpi.engineGenerateCertPath
(List<? extends Certificate> certificates) Generates aCertPath
object and initializes it with aList
ofCertificate
s.final CertPath
CertificateFactory.generateCertPath
(List<? extends Certificate> certificates) Generates aCertPath
object and initializes it with aList
ofCertificate
s. -
Uses of Certificate in java.util.jar
Modifier and TypeMethodDescriptionJarEntry.getCertificates()
Returns theCertificate
objects for this entry, ornull
if none. -
Uses of Certificate in javax.crypto
Modifier and TypeMethodDescriptionfinal void
Cipher.init
(int opmode, Certificate certificate) Initializes thisCipher
object with the public key from the given certificate.final void
Cipher.init
(int opmode, Certificate certificate, SecureRandom random) Initializes thisCipher
object with the public key from the given certificate and a source of randomness. -
Uses of Certificate in javax.net.ssl
Modifier and TypeMethodDescriptionHandshakeCompletedEvent.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.SSLSession.getLocalCertificates()
Returns the certificate(s) that were sent to the peer during handshaking.HandshakeCompletedEvent.getPeerCertificates()
Returns the identity of the peer which was established as part of defining the session.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.