Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
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.

Constructor Summary

Certificate()

The base class for public-key certificates. This class is deprecated in favor of the java.security.cert.Certificate class.

Method Summary

booleanequals(Object other)

Tests if this certificate equals another.
byte[]getEncoded()

Return the encoded form of this certificate.
PublicKeygetPublicKey()

Returns this certificate's public key.
inthashCode()

Computes a hash code for this certificate.
StringtoString()

Returns a printable representation of this certificate.
voidverify(PublicKey key)

Verifies the signature of this certificate.
voidverify(PublicKey key, String sigProvider)

Verifies the signature of this certificate, using the specified security provider.

Constructor Details

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.


Method Details

equals

public boolean equals(Object other)

Tests if this certificate equals another.

Parameters:

Returns:


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:


verify

public void verify(PublicKey key, String sigProvider)

Verifies the signature of this certificate, using the specified security provider.

Parameters:

Throws: