X500PrivateCredential


X500PrivateCredential javax.security.auth.x500

Java 1.4

This class associates a java.security.cert.X509Certificate with a java.security.PrivateKey for that certificate, and, optionally , the keystore alias used to retrieve the certificate and key from a java.security.KeyStore . The class defines methods to retreive the certificate, key, and alias, and also implements the methods of the javax.security.cert.Destroyable interface.

Figure 19-29. javax.security.auth.x500.X500PrivateCredential

 public final class  X500PrivateCredential  implements javax.security.auth.Destroyable {  // Public Constructors  public  X500PrivateCredential  (java.security.cert.X509Certificate  cert  ,          java.security.PrivateKey  key  );        public  X500PrivateCredential  (java.security.cert.X509Certificate  cert  ,          java.security.PrivateKey  key  , String  alias  );  // Public Instance Methods  public String  getAlias  ( );        public java.security.cert.X509Certificate  getCertificate  ( );        public java.security.PrivateKey  getPrivateKey  ( );  // Methods Implementing Destroyable  public void  destroy  ( );        public boolean  isDestroyed  ( );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net