| java.lang.Object java.security.cert.Certificate
All known Subclasses: java.security.cert.X509Certificate,
Certificate | abstract public class Certificate implements Serializable(Code) | | Abstract class to represent identity certificates. It represents a way to
verify the binding of a Principal and its public key. Examples are X.509,
PGP, and SDSI.
|
Inner Class :protected static class CertificateRep implements Serializable | |
Method Summary | |
public boolean | equals(Object other) Compares the argument to the receiver, and answers true if they represent
the same object using a class specific comparison. | abstract public byte[] | getEncoded() Answers the encoded representation for this certificate. | abstract public PublicKey | getPublicKey() Answers the public key corresponding to this certificate. | final public String | getType() Answers the certificate type represented by the receiver. | public int | hashCode() Answers an integer hash code for the receiver. | abstract public String | toString() Answers a string containing a concise, human-readable description of the
receiver. | abstract public void | verify(PublicKey key) Verifies that this certificate was signed with the given public key. | abstract public void | verify(PublicKey key, String sigProvider) Verifies that this certificate was signed with the given public key. | protected Object | writeReplace() |
equals | public boolean equals(Object other)(Code) | | Compares the argument to the receiver, and answers true if they represent
the same object using a class specific comparison. The
implementation in Object answers true only if the argument is the exact
same object as the receiver (==).
Parameters: other - the object to compare with this object true if the object is the same as this objectfalse if it is different from this object See Also: Certificate.hashCode |
getEncoded | abstract public byte[] getEncoded() throws CertificateEncodingException(Code) | | Answers the encoded representation for this certificate.
the encoded representation for this certificate. |
getPublicKey | abstract public PublicKey getPublicKey()(Code) | | Answers the public key corresponding to this certificate.
the public key corresponding to this certificate. |
getType | final public String getType()(Code) | | Answers the certificate type represented by the receiver.
the certificate type represented by the receiver. |
hashCode | public int hashCode()(Code) | | Answers an integer hash code for the receiver. Any two objects which
answer true when passed to equals must
answer the same value for this method.
the receiver's hash See Also: Certificate.equals |
toString | abstract public String toString()(Code) | | Answers a string containing a concise, human-readable description of the
receiver.
a printable representation for the receiver. |
|
|