Java In A Nutshell, 5th Edition

Certificate java.security

Java 1.1; Deprecated in 1.2 @Deprecated

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( )

Категории