javax.security.cert
Class Certificate
java.lang.Object
|
+--javax.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.
Certificate
public Certificate()
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.
equals
public boolean equals(Object other)
Tests if this certificate equals another.
Parameters:
Returns:
- True if the certificates are equal.
getEncoded
public byte[] getEncoded()
Return the encoded form of this certificate.
Returns:
Throws:
getPublicKey
public PublicKey getPublicKey()
Returns this certificate's public key.
Returns:
hashCode
public int hashCode()
Computes a hash code for this certificate.
Returns:
toString
public String toString()
Returns a printable representation of this certificate.
Returns:
verify
public void verify(PublicKey key)
Verifies the signature of this certificate.
Parameters:
Throws:
CertificateException
-
- If the algorithm used to sign the
certificate is not available.
- If the supplied key is not appropriate for the
certificate's signature algorithm.
-
- If the signature could not be verified.
verify
public void verify(PublicKey key, String sigProvider)
Verifies the signature of this certificate, using the specified security
provider.
Parameters:
Throws:
CertificateException
-
- If the algorithm used to sign the
certificate is not available.
- If the supplied key is not appropriate for the
certificate's signature algorithm.
- If sigProvider is not the name of an
installed provider.
- If the signature could not be verified.