java.lang.Object | |
↳ | javax.security.auth.x500.X500PrivateCredential |
This class represents an X500PrivateCredential
.
It associates an X.509 certificate, corresponding private key and the
KeyStore alias used to reference that exact key pair in the KeyStore.
This enables looking up the private credentials for an X.500 principal
in a subject.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an X500PrivateCredential that associates an X.509 certificate,
a private key and the KeyStore alias.
| |||||||||||
Creates an X500PrivateCredential that associates an X.509 certificate,
a private key and the KeyStore alias.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clears the references to the X.509 certificate, private key and the
KeyStore alias in this object.
| |||||||||||
Returns the KeyStore alias.
| |||||||||||
Returns the X.509 certificate.
| |||||||||||
Returns the PrivateKey.
| |||||||||||
Determines if the references to the X.509 certificate and private key
in this object have been cleared.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias.
cert | X509Certificate |
---|---|
key | PrivateKey for the certificate |
IllegalArgumentException | if either cert or
key is null
|
---|
Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias.
cert | X509Certificate |
---|---|
key | PrivateKey for the certificate |
alias | KeyStore alias |
IllegalArgumentException | if either cert ,
key or alias is null
|
---|
Clears the references to the X.509 certificate, private key and the KeyStore alias in this object.
Determines if the references to the X.509 certificate and private key in this object have been cleared.