Name

Class java.security.cert.Certificate

Synopsis

This class represents any type of cryptographic certificate. A certificate contains a public key (see getPublicKey( )) and other associated information. The certificate contains an internal signature that protects its integrity. You can verify the integrity of the certificate by calling one of the verify( ) methods with the public key of the certificate’s issuer. (Note: don’t confuse this class with the java.security.Certificate interface, which is deprecated.)

Class Definition

public abstract class java.security.cert.Certificate
    extends java.lang.Object
    implements java.io.Serializable {

    // Constructors
    protected Certificate(String);

    // Instance Methods
    public boolean equals(Object);
    public abstract byte[] getEncoded(  );
    public abstract PublicKey getPublicKey(  );
    public final String getType(  );
    public int hashCode(  );
    public abstract String toString(  );
    public abstract void verify(PublicKey);
    public abstract void verify(PublicKey, String);

    // Protected Instance Methods
    protected Object writeReplace(  );
}

See also

PublicKey, X509Certificate

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.