Name

Certificate

Synopsis

This interface was used in Java 1.1 to represent an identity certificate. It has been deprecated as of Java 1.2 in favor of the java.security.cert package (see Chapter 19). See also java.security.cert.Certificate.

public interface Certificate {
// Public Instance Methods
     void decode(java.io.InputStream stream) 
        throws KeyException, java.io.IOException;  
     void encode(java.io.OutputStream stream) 
        throws KeyException, java.io.IOException;  
     String getFormat( );  
     Principal getGuarantor( );  
     Principal getPrincipal( );  
     PublicKey getPublicKey( );  
     String toString(boolean detailed);  
}

Passed To

Identity.{addCertificate( ), removeCertificate( )}

Returned By

Identity.certificates( )

Get Java in a Nutshell, 5th 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.