|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Constructor Summary | |
X500PrivateCredential(X509Certificate cert,
PrivateKey key)
Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias. |
|
X500PrivateCredential(X509Certificate cert,
PrivateKey key,
String alias)
Creates an X500PrivateCredential that associates an X.509 certificate, a private key and the KeyStore alias. |
Method Summary | |
void |
destroy()
Clears the references to the X.509 certificate, private key and the KeyStore alias in this object. |
String |
getAlias()
Returns the KeyStore alias. |
X509Certificate |
getCertificate()
Returns the X.509 certificate. |
PrivateKey |
getPrivateKey()
Returns the PrivateKey. |
boolean |
isDestroyed()
Determines if the references to the X.509 certificate and private key in this object have been cleared. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public X500PrivateCredential(X509Certificate cert, PrivateKey key)
cert
- X509Certificatekey
- PrivateKey for the certificate
IllegalArgumentException
- if either cert
or
key
is nullpublic X500PrivateCredential(X509Certificate cert, PrivateKey key, String alias)
cert
- X509Certificatekey
- PrivateKey for the certificatealias
- KeyStore alias
IllegalArgumentException
- if either cert
,
key
or alias
is nullMethod Detail |
public X509Certificate getCertificate()
public PrivateKey getPrivateKey()
public String getAlias()
public void destroy()
destroy
in interface Destroyable
public boolean isDestroyed()
isDestroyed
in interface Destroyable
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.