| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The class KeyProvider is an interface
 that is implemented to retrieve X509Certificates and Private Keys from
 user data store.  
 
| Method Summary | |
|  java.security.cert.Certificate | getCertificate(java.security.PublicKey publicKey)Returns certificate corresponding to the specified PublicKey. | 
|  java.lang.String | getCertificateAlias(java.security.cert.Certificate cert)Get the alias name of the first keystore entry whose certificate matches the given certificate. | 
|  java.security.PrivateKey | getPrivateKey(java.lang.String certAlias)Returns java.security.PrivateKeyfor the specifiedcertAlias. | 
|  java.security.PublicKey | getPublicKey(java.lang.String keyAlias)Returns java.security.PublicKeyfor the specifiedkeyAlias | 
|  java.security.cert.X509Certificate | getX509Certificate(java.lang.String certAlias)Return java.security.cert.X509Certificatefor the specifiedcertAlias. | 
|  void | setKey(java.lang.String storepass,
       java.lang.String keypass)Set the key to access key store database. | 
| Method Detail | 
public void setKey(java.lang.String storepass,
                   java.lang.String keypass)
storepass - password for the key storekeypass - password for the certificatepublic java.security.cert.X509Certificate getX509Certificate(java.lang.String certAlias)
java.security.cert.X509Certificate for the specified
 certAlias.certAlias - Certificate alias nameX509Certificate which matches the
         certAlias, return null if the certificate could not
         be found.public java.security.PublicKey getPublicKey(java.lang.String keyAlias)
java.security.PublicKey for the specified
 keyAliaskeyAlias - Key alias namePublicKey which matches the keyAlias,
         return null if the PublicKey could not be found.public java.security.PrivateKey getPrivateKey(java.lang.String certAlias)
java.security.PrivateKey for the specified
 certAlias.certAlias - Certificate alias namePrivateKey which matches the certAlias,
         return null if the private key could not be found.public java.lang.String getCertificateAlias(java.security.cert.Certificate cert)
cert - Certificatepublic java.security.cert.Certificate getCertificate(java.security.PublicKey publicKey)
PublicKey.publicKey - Certificate public keyPublicKey, return
         null if the Certificate could not be found.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||