This KeyStore.Entry
implementation represents a
private key. getPrivateKey(
)
returns the key. getCertificateChain( ) returns
the certificate chain of the corresponding public key. The first
element of the returned array is the certificate of the ultimate
certificate authority (CA). This "end
entity" certificate is also available through the
getCertificate( ) method.
public static final class
KeyStore.PrivateKeyEntry implements KeyStore.Entry {
// Public Constructors
public
PrivateKeyEntry (PrivateKey
privateKey , java.security.cert.
Certificate[ ]
chain );
// Public Instance Methods
public java.security.cert.Certificate
getCertificate ( );
public java.security.cert.Certificate[ ]
getCertificateChain ( );
public PrivateKey
getPrivateKey ( );
// Public Methods Overriding Object
public String
toString ( );
}