java.lang.Object | |
↳ | java.security.KeyStore.PrivateKeyEntry |
PrivateKeyEntry
represents a KeyStore
entry that
holds a private key.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of
PrivateKeyEntry with the given
PrivateKey and the provided certificate chain.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the certificate corresponding to the private key.
| |||||||||||
Returns the certificate chain.
| |||||||||||
Returns the private key.
| |||||||||||
Returns a string containing a concise, human-readable description of
this
PrivateKeyEntry .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a new instance of PrivateKeyEntry
with the given
PrivateKey
and the provided certificate chain.
Parameters | |
---|---|
privateKey |
PrivateKey :
the private key. |
chain |
Certificate :
the ordered certificate chain with the certificate
corresponding to the private key at index 0. |
Throws | |
---|---|
NullPointerException |
if privateKey or chain is null . |
IllegalArgumentException |
if chain.length == 0 , the algorithm of the
private key does not match the algorithm of the public
key of the first certificate or the certificates are not
all of the same type.
|
Returns the certificate corresponding to the private key.
Returns | |
---|---|
Certificate |
the certificate corresponding to the private key. |
Returns the certificate chain.
Returns | |
---|---|
Certificate[] |
the certificate chain. |
Returns the private key.
Returns | |
---|---|
PrivateKey |
the private key. |
Returns a string containing a concise, human-readable description of
this PrivateKeyEntry
.
Returns | |
---|---|
String |
a printable representation for this PrivateKeyEntry .
|