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.
Modifier and Type | Field and Description |
---|---|
private String | |
private X509Certificate | |
private PrivateKey |
Access | Constructor and Description |
---|---|
public | X500PrivateCredential(X509Certificate
X509Certificate cert, PrivateKey PrivateKey for the certificate key)Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias. |
public | X500PrivateCredential(X509Certificate
X509Certificate cert, PrivateKey PrivateKey for the certificate key, String KeyStore alias alias)Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias. |
Modifier and Type | Method and Description |
---|---|
public void | destroy()
Overrides default javax. Clears the references to the X.509 certificate, private key and the KeyStore alias in this object. |
public String | |
public X509Certificate | |
public PrivateKey | |
public boolean | Returns: true if X509Certificate and the PrivateKey are nullOverrides default javax. Determines if the references to the X.509 certificate and private key in this object have been cleared. |
alias | back to summary |
---|---|
private String alias |
cert | back to summary |
---|---|
private X509Certificate cert |
key | back to summary |
---|---|
private PrivateKey key |
X500PrivateCredential | back to summary |
---|---|
public X500PrivateCredential(X509Certificate cert, PrivateKey key) Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias.
|
X500PrivateCredential | back to summary |
---|---|
public X500PrivateCredential(X509Certificate cert, PrivateKey key, String alias) Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias.
|
destroy | back to summary |
---|---|
public void destroy() Overrides default javax. Clears the references to the X.509 certificate, private key and the KeyStore alias in this object. |
getAlias | back to summary |
---|---|
public String getAlias() Returns the KeyStore alias.
|
getCertificate | back to summary |
---|---|
public X509Certificate getCertificate() Returns the X.509 certificate.
|
getPrivateKey | back to summary |
---|---|
public PrivateKey getPrivateKey() Returns the PrivateKey.
|
isDestroyed | back to summary |
---|---|
public boolean isDestroyed() Overrides default javax. Determines if the references to the X.509 certificate and private key in this object have been cleared.
|