public class KeyStoreKeyRetriever extends KeyRetriever
| Constructor and Description |
|---|
KeyStoreKeyRetriever(java.security.KeyStore ks,
char[] keyPassword) |
| Modifier and Type | Method and Description |
|---|---|
protected java.security.cert.X509Certificate |
retrieveCertificate(KeyInfoData keyInfo)
Retrieves the certificate identified by the given
KeyInfoData. |
protected java.security.PrivateKey |
retrievePrivateKey(KeyInfoData keyInfo)
Retrieves the private key identified by the given
KeyInfoData. |
protected java.security.PublicKey |
retrievePublicKey(KeyInfoData keyInfo)
Retrieves the public key identified by the given
KeyInfoData. |
addKeyRetriever, getAuthenticator, getCertificate, getCertificate, getPrivateKey, getPrivateKey, getPublicKey, getPublicKey, getSymmetricKey, getSymmetricKey, removeKeyRetriever, retrieveCertificate, retrievePrivateKey, retrievePublicKey, retrieveSymmetricKey, retrieveSymmetricKey, setAuthenticator, setCertificateValidator, validateCertificate, validateCertificate, validateCertificatepublic KeyStoreKeyRetriever(java.security.KeyStore ks,
char[] keyPassword)
protected java.security.cert.X509Certificate retrieveCertificate(KeyInfoData keyInfo) throws KeyRetrievalException
KeyRetrieverKeyInfoData.
If this method is not overridden it always returns null.retrieveCertificate in class KeyRetrieverkeyInfo - A KeyInfoData to be used to locate the
certificate.X509Certificate, or null
if none could be located.StorageAuthenticationException - If an error occurs authenticating to the key source.KeyRetrievalExceptionprotected java.security.PrivateKey retrievePrivateKey(KeyInfoData keyInfo) throws KeyRetrievalException
KeyRetrieverKeyInfoData.
If this method is not overridden it always returns null.retrievePrivateKey in class KeyRetrieverkeyInfo - A KeyInfoData to be used to locate the
private key.PrivateKey, or null
if none could be located.StorageAuthenticationException - If an error occurs authenticating to the key source.KeyRetrievalExceptionprotected java.security.PublicKey retrievePublicKey(KeyInfoData keyInfo) throws KeyRetrievalException
KeyRetrieverKeyInfoData.
If this method is not overridden it always returns null.retrievePublicKey in class KeyRetrieverkeyInfo - A KeyInfoData to be used to locate the
public key.PublicKey, or null
if none could be located.StorageAuthenticationException - If an error occurs authenticating to the key source.KeyRetrievalException