javax.security.cert
Class Certificate
java.lang.Objectjavax.security.cert.Certificate
public abstract class Certificate
extends java.lang.Object
The base class for public-key certificates.
This class is deprecated in favor of the java.security.cert.Certificate class. It should not be used in new
applications.
NOTE: This package is deprecated. Use
java.security.cert.Certificate instead.
boolean | equals(Object other)- Tests if this certificate equals another.
|
abstract byte[] | getEncoded()- Return the encoded form of this certificate.
|
abstract PublicKey | getPublicKey()- Returns this certificate's public key.
|
int | hashCode()- Computes a hash code for this certificate.
|
abstract String | toString()- Returns a printable representation of this certificate.
|
abstract void | verify(PublicKey key)- Verifies the signature of this certificate.
|
abstract void | verify(PublicKey key, String sigProvider)- Verifies the signature of this certificate, using the specified security
provider.
|
Certificate
public Certificate()
equals
public boolean equals(Object other)
Tests if this certificate equals another.
other - The object to test.
- True if the certificates are equal.
getPublicKey
public abstract PublicKey getPublicKey()
Returns this certificate's public key.
hashCode
public int hashCode()
Computes a hash code for this certificate.
toString
public abstract String toString()
Returns a printable representation of this certificate.
verify
public abstract void verify(PublicKey key)
throws CertificateException,
NoSuchAlgorithmException,
InvalidKeyException,
NoSuchProviderException,
SignatureException Verifies the signature of this certificate.
key - The signer's public key.
verify
public abstract void verify(PublicKey key,
String sigProvider)
throws CertificateException,
NoSuchAlgorithmException,
InvalidKeyException,
NoSuchProviderException,
SignatureException Verifies the signature of this certificate, using the specified security
provider.
key - The signer's public key.sigProvider - The name of the signature provider.