JavaTM 2 Platform
Std. Ed. v1.4.2

Uses of Class
java.security.cert.Certificate

Packages that use Certificate
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. 
 

Uses of Certificate in java.net
 

Methods in java.net that return Certificate
 Certificate[] JarURLConnection.getCertificates()
          Return the Certificate object for this connection if the URL for it points to a JAR file entry, null otherwise.
 

Uses of Certificate in java.security
 

Methods in java.security that return Certificate
abstract  Certificate[] KeyStoreSpi.engineGetCertificateChain(String alias)
          Returns the certificate chain associated with the given alias.
abstract  Certificate KeyStoreSpi.engineGetCertificate(String alias)
          Returns the certificate associated with the given alias.
 Certificate[] KeyStore.getCertificateChain(String alias)
          Returns the certificate chain associated with the given alias.
 Certificate KeyStore.getCertificate(String alias)
          Returns the certificate associated with the given alias.
 Certificate[] CodeSource.getCertificates()
          Returns the certificates associated with this CodeSource.
 

Methods in java.security with parameters of type Certificate
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.
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.engineSetCertificateEntry(String alias, Certificate cert)
          Assigns the given certificate to the given alias.
abstract  String KeyStoreSpi.engineGetCertificateAlias(Certificate cert)
          Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.
 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.
 void KeyStore.setKeyEntry(String alias, byte[] key, Certificate[] chain)
          Assigns the given key (that has already been protected) to the given alias.
 void KeyStore.setCertificateEntry(String alias, Certificate cert)
          Assigns the given certificate to the given alias.
 String KeyStore.getCertificateAlias(Certificate cert)
          Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.
 void Signature.initVerify(Certificate certificate)
          Initializes this object for verification, using the public key from the given certificate.
 

Constructors in java.security with parameters of type Certificate
UnresolvedPermission(String type, String name, String actions, Certificate[] certs)
          Creates a new UnresolvedPermission containing the permission information needed later to actually create a Permission of the specified class, when the permission is resolved.
CodeSource(URL url, Certificate[] certs)
          Constructs a CodeSource and associates it with the specified location and set of certificates.
 

Uses of Certificate in java.security.cert
 

Subclasses of Certificate in java.security.cert
 class X509Certificate
           Abstract class for X.509 certificates.
 

Methods in java.security.cert that return Certificate
 Certificate CertificateFactory.generateCertificate(InputStream inStream)
          Generates a certificate object and initializes it with the data read from the input stream inStream.
abstract  Certificate CertificateFactorySpi.engineGenerateCertificate(InputStream inStream)
          Generates a certificate object and initializes it with the data read from the input stream inStream.
 

Methods in java.security.cert with parameters of type Certificate
abstract  void PKIXCertPathChecker.check(Certificate cert, Collection 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.
 boolean X509CertSelector.match(Certificate cert)
          Decides whether a Certificate should be selected.
 boolean CertSelector.match(Certificate cert)
          Decides whether a Certificate should be selected.
abstract  boolean CRL.isRevoked(Certificate cert)
          Checks whether the given certificate is on this CRL.
 

Uses of Certificate in java.util.jar
 

Methods in java.util.jar that return Certificate
 Certificate[] JarEntry.getCertificates()
          Returns the Certificate objects for this entry, or null if none.
 

Uses of Certificate in javax.crypto
 

Methods in javax.crypto with parameters of type Certificate
 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.
 

Uses of Certificate in javax.net.ssl
 

Methods in javax.net.ssl that return Certificate
abstract  Certificate[] HttpsURLConnection.getLocalCertificates()
          Returns the certificate(s) that were sent to the server during handshaking.
abstract  Certificate[] HttpsURLConnection.getServerCertificates()
          Returns the server's certificate chain 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.
 Certificate[] SSLSession.getLocalCertificates()
          Returns the certificate(s) that were sent to the peer during handshaking.
 Certificate[] HandshakeCompletedEvent.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.
 


JavaTM 2 Platform
Std. Ed. v1.4.2

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.