javax.security.auth.x500
public final class X500PrivateCredential extends Object implements Destroyable
Constructor Summary | |
---|---|
X500PrivateCredential(X509Certificate certificate, PrivateKey key)
Creates a new private credential with no associated keystore alias.
| |
X500PrivateCredential(X509Certificate certificate, PrivateKey key, String alias)
Creates a new private credential with a keystore alias.
|
Method Summary | |
---|---|
void | destroy()
Destroy the sensitive data of this credential, setting the certificate,
private key, and keystore alias to null. |
String | getAlias()
Returns the keystore alias of this credential, or null if not present.
|
X509Certificate | getCertificate()
Returns the certificate of this credential.
|
PrivateKey | getPrivateKey()
Returns the private key of this credential.
|
boolean | isDestroyed()
Tells whether or not this credential has been destroyed, and that
the certificate and private key fields are null.
|
Parameters: certificate The X.509 certificate. key The private key.
Throws: IllegalArgumentException If either parameter is null.
Parameters: certificate The X.509 certificate. key The private key. alias The keystore alias for this credential.
Throws: IllegalArgumentException If any parameter is null.
Returns: The keystore alias, or null.
Returns: The certificate of this credential.
Returns: The private key of this credential.
Returns: True if this object has been destroyed.