Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 493
نمايش فراداده

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