|
Oracle Security Developer Tools Web Services Security Java API Reference 10g Release 2 (10.1.2.0.2) B15570-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.keys.retrieval.KeyRetriever
oracle.security.xmlsec.wss.util.WSSKeyRetriever
This class server as an utility for extracting keys from dsig:KeyInfo instances containing wsse elements. It can only retrieve information located in the same org.w3c.dom.Document instance.
Users should override this class to implement retrieval of keys from persistant storage.
Constructor Summary | |
WSSKeyRetriever() |
Method Summary | |
oracle.security.crypto.cert.X509 |
processCert(oracle.security.xmlsec.keys.KeyInfoData kid) Parse the KeyInfo data and obtain the X509 certificate. |
PrivateKey |
processPrivateKey(oracle.security.xmlsec.keys.KeyInfoData kid) Parse the KeyInfo data and obtain the private key. |
SymmetricKey |
processSymmetricKey(oracle.security.xmlsec.keys.KeyInfoData kid) Parse the KeyInfo data and obtain the symmetric key. |
protected oracle.security.crypto.cert.X509 |
retrieveCertificate(oracle.security.xmlsec.keys.KeyInfoData keyInfo) Retrieves the certificate identified by the given KeyInfoData . |
protected PrivateKey |
retrievePrivateKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo) Retrieves the private key identified by the given KeyInfoData . |
protected PublicKey |
retrievePublicKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo) Retrieves the public key identified by the given KeyInfoData . |
protected SymmetricKey |
retrieveSymmetricKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo) Retrieves the secret key identified by the given KeyInfoData . |
Methods inherited from class oracle.security.xmlsec.keys.retrieval.KeyRetriever |
addKeyRetriever, getAuthenticator, getCertificate, getCertificate, getPrivateKey, getPrivateKey, getPublicKey, getPublicKey, getSymmetricKey, getSymmetricKey, retrieveCertificate, retrievePrivateKey, retrievePublicKey, retrieveSymmetricKey, setAuthenticator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WSSKeyRetriever()
Method Detail |
protected oracle.security.crypto.cert.X509 retrieveCertificate(oracle.security.xmlsec.keys.KeyInfoData keyInfo) throws oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
oracle.security.xmlsec.keys.retrieval.KeyRetriever
KeyInfoData
. If this method is not overridden it always returns null
.keyInfo
- A KeyInfoData
to be used to locate the certificate.X509
, or null
if none could be located.oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
protected PublicKey retrievePublicKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo) throws oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
oracle.security.xmlsec.keys.retrieval.KeyRetriever
KeyInfoData
. If this method is not overridden it always returns null
.keyInfo
- A KeyInfoData
to be used to locate the public key.PublicKey
, or null
if none could be located.oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
protected PrivateKey retrievePrivateKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo) throws oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
oracle.security.xmlsec.keys.retrieval.KeyRetriever
KeyInfoData
. If this method is not overridden it always returns null
.keyInfo
- A KeyInfoData
to be used to locate the private key.PrivateKey
, or null
if none could be located.oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
protected SymmetricKey retrieveSymmetricKey(oracle.security.xmlsec.keys.KeyInfoData keyInfo) throws oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
oracle.security.xmlsec.keys.retrieval.KeyRetriever
KeyInfoData
. If this method is not overridden it always returns null
.keyInfo
- A KeyInfoData
to be used to locate the secret key.SymmetricKey
, or null
if none could be located.oracle.security.xmlsec.keys.retrieval.KeyRetrievalException
public oracle.security.crypto.cert.X509 processCert(oracle.security.xmlsec.keys.KeyInfoData kid) throws WSSException
Document
.kid
- The wsse:SecurityTokenReference element.null
.WSSException
public PrivateKey processPrivateKey(oracle.security.xmlsec.keys.KeyInfoData kid) throws WSSException
kid
- The wsse:SecurityTokenReference element.null
.WSSException
public SymmetricKey processSymmetricKey(oracle.security.xmlsec.keys.KeyInfoData kid) throws WSSException
kid
- The wsse:SecurityTokenReference element.null
.WSSException
|
Oracle Security Developer Tools Web Services Security Java API Reference 10g Release 2 (10.1.2.0.2) B15570-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |