public class WSSKeyRetriever
extends oracle.security.xmlsec.keys.retrieval.KeyRetriever
Users should override this class to implement retrieval of keys from persistant storage.
| Constructor and Description |
|---|
WSSKeyRetriever() |
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509Certificate |
processCert(oracle.security.xmlsec.keys.KeyInfoData kid)
Parse the KeyInfo data and obtain the X509Certificate certificate.
|
java.security.PrivateKey |
processPrivateKey(oracle.security.xmlsec.keys.KeyInfoData kid)
Parse the KeyInfo data and obtain the private key.
|
javax.crypto.SecretKey |
processSymmetricKey(oracle.security.xmlsec.keys.KeyInfoData kid)
Parse the KeyInfo data and obtain the symmetric key.
|
protected java.security.cert.X509Certificate |
retrieveCertificate(oracle.security.xmlsec.keys.KeyInfoData keyInfo)
Retrieves the certificate identified by the given
KeyInfoData. |
protected java.security.PrivateKey |
retrievePrivateKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo)
Retrieves the private key identified by the given
KeyInfoData. |
protected java.security.PublicKey |
retrievePublicKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo)
Retrieves the public key identified by the given
KeyInfoData. |
protected javax.crypto.SecretKey |
retrieveSymmetricKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo)
Retrieves the secret key identified by the given
KeyInfoData. |
addKeyRetriever, getAuthenticator, getCertificate, getCertificate, getPrivateKey, getPrivateKey, getPublicKey, getPublicKey, getSymmetricKey, getSymmetricKey, removeKeyRetriever, retrieveCertificate, retrievePrivateKey, retrievePublicKey, retrieveSymmetricKey, setAuthenticator, setCertificateValidator, validateCertificate, validateCertificate, validateCertificate
protected java.security.cert.X509Certificate retrieveCertificate(oracle.security.xmlsec.keys.KeyInfoData keyInfo)
throws oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
oracle.security.xmlsec.keys.retrieval.KeyRetrieverKeyInfoData. If this method is not overridden it always returns null.retrieveCertificate in class oracle.security.xmlsec.keys.retrieval.KeyRetrieverkeyInfo - A KeyInfoData to be used to locate the certificate.X509Certificate, or null if none could be located.oracle.security.xmlsec.keys.retrieval.StorageAuthenticationException - If an error occurs authenticating to the key source.oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
protected java.security.PublicKey retrievePublicKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo)
throws oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
oracle.security.xmlsec.keys.retrieval.KeyRetrieverKeyInfoData. If this method is not overridden it always returns null.retrievePublicKey in class oracle.security.xmlsec.keys.retrieval.KeyRetrieverkeyInfo - A KeyInfoData to be used to locate the public key.PublicKey, or null if none could be located.oracle.security.xmlsec.keys.retrieval.StorageAuthenticationException - If an error occurs authenticating to the key source.oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
protected java.security.PrivateKey retrievePrivateKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo)
throws oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
oracle.security.xmlsec.keys.retrieval.KeyRetrieverKeyInfoData. If this method is not overridden it always returns null.retrievePrivateKey in class oracle.security.xmlsec.keys.retrieval.KeyRetrieverkeyInfo - A KeyInfoData to be used to locate the private key.PrivateKey, or null if none could be located.oracle.security.xmlsec.keys.retrieval.StorageAuthenticationException - If an error occurs authenticating to the key source.oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
protected javax.crypto.SecretKey retrieveSymmetricKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo)
throws oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
oracle.security.xmlsec.keys.retrieval.KeyRetrieverKeyInfoData. If this method is not overridden it always returns null.retrieveSymmetricKey in class oracle.security.xmlsec.keys.retrieval.KeyRetrieverkeyInfo - A KeyInfoData to be used to locate the secret key.SecretKey, or null if none could be located.oracle.security.xmlsec.keys.retrieval.StorageAuthenticationException - If an error occurs authenticating to the key source.oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
public java.security.cert.X509Certificate processCert(oracle.security.xmlsec.keys.KeyInfoData kid)
throws WSSException
Document.kid - The wsse:SecurityTokenReference element.null.WSSException
public java.security.PrivateKey processPrivateKey(oracle.security.xmlsec.keys.KeyInfoData kid)
throws WSSException
kid - The wsse:SecurityTokenReference element.null.WSSException
public javax.crypto.SecretKey processSymmetricKey(oracle.security.xmlsec.keys.KeyInfoData kid)
throws WSSException
kid - The wsse:SecurityTokenReference element.null.WSSException