Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security

Interface Certificate

java.lang.Object
|
+--java.security.Certificate


public interface Certificate

This interface models a digital certificate which verifies the authenticity of a party. This class simply allows certificate information to be queried, it does not guarantee that the certificate is valid.

This class is deprecated in favor of the new java.security.cert package. It exists for backward compatibility only.

Since:Author:

Method Summary

voiddecode(java.io.InputStream in)

This method reads an encoded certificate from an InputStream.
voidencode(java.io.OutputStream out)

This method writes the certificate to an OutputStream in a format that can be understood by the decode method.
java.lang.StringgetFormat()

This method returns the encoding format of the certificate (e.g., "PGP", "X.509").
java.security.PrincipalgetGuarantor()

This method returns the Principal that is guaranteeing this certificate.
java.security.PrincipalgetPrincipal()

This method returns the Principal being guaranteed by this certificate.
java.security.PublicKeygetPublicKey()

This method returns the public key for the Principal that is being guaranteed.
java.lang.StringtoString(boolean detail)

This method returns a String representation of the contents of this certificate.

Method Details

decode

public void decode(java.io.InputStream in)

This method reads an encoded certificate from an InputStream.

Parameters:

Throws:

See Also:


encode

public void encode(java.io.OutputStream out)

This method writes the certificate to an OutputStream in a format that can be understood by the decode method.

Parameters:

Throws:

See Also:


getFormat

public String getFormat()

This method returns the encoding format of the certificate (e.g., "PGP", "X.509"). This format is used by the encode and decode methods.

Returns:


getGuarantor

public Principal getGuarantor()

This method returns the Principal that is guaranteeing this certificate.

Returns:


getPrincipal

public Principal getPrincipal()

This method returns the Principal being guaranteed by this certificate.

Returns:


getPublicKey

public PublicKey getPublicKey()

This method returns the public key for the Principal that is being guaranteed.

Returns:


toString

public String toString(boolean detail)

This method returns a String representation of the contents of this certificate.

Parameters:

Returns: