API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security.cert. Certificate View Source
Author(s)
Hemma Prafullchandra
Since
Version
1.27, 04/21/06
Serial
Hierarchy
 Object
      Certificate
Implements
 Serializable
Subclasses
Description
publicabstract abstract class Certificate
  Abstract class for managing a variety of identity certificates.
Constructors
protected Certificate (String type)
  Creates a certificate of the specified type.
Methods
Hide/Show inherited methods
public boolean equals (Object other)
  Compares this certificate for equality with the specified object.
publicabstract byte getEncoded () throws CertificateEncodingException
  Returns the encoded form of this certificate.
publicabstract PublicKey getPublicKey ()
  Gets the public key from this certificate.
publicfinal String getType ()
  Returns the type of this certificate.
public int hashCode ()
  Returns a hashcode value for this certificate from its encoded form.
publicabstract String toString ()
  Returns a string representation of this certificate.
publicabstract void verify (PublicKey key) throws CertificateException NoSuchAlgorithmException InvalidKeyException NoSuchProviderException SignatureException
  Verifies that this certificate was signed using the private key that corresponds to the specified public key.
publicabstract void verify (PublicKey key, String sigProvider) throws CertificateException NoSuchAlgorithmException InvalidKeyException NoSuchProviderException SignatureException
  Verifies that this certificate was signed using the private key that corresponds to the specified public key.
protected Object writeReplace () throws ObjectStreamException
  Replace the Certificate to be serialized.
Fields
Hide/Show inherited fields
Nested Classes
  Certificate.CertificateRep
Alternate Certificate class for serialization.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar