Name
KeyStore.PrivateKeyEntry
Synopsis
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( ); }
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.