|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-05 |
||||||||
| 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.keys.retrieval.KeyInfoTool
public class KeyInfoTool
Utility for extracting keys and certificates from a KeyInfo.
XSKeyInfo, KeyInfoData, KeyRetriever| Constructor Summary | |
|---|---|
KeyInfoTool()Creates a new KeyInfoTool instance. |
|
| Method Summary | |
|---|---|
java.security.cert.X509Certificate |
retrieveCertificate(KeyInfoData keyInfo)Extracts the certificate from the given KeyInfoData. |
java.security.PublicKey |
retrievePublicKey(KeyInfoData keyInfo)Extracts the public key from the given KeyInfoData. |
javax.crypto.SecretKey |
retrieveSymmetricKey(KeyInfoData keyInfo)Extracts the symmetric key from the given KeyInfoData. |
| Methods inherited from class oracle.security.xmlsec.keys.retrieval.KeyRetriever |
|---|
addKeyRetriever, getAuthenticator, getCertificate, getCertificate, getPrivateKey, getPrivateKey, getPublicKey, getPublicKey, getSymmetricKey, getSymmetricKey, removeKeyRetriever, retrieveCertificate, retrievePrivateKey, retrievePrivateKey, retrievePublicKey, retrieveSymmetricKey, setAuthenticator, setCertificateValidator, validateCertificate, validateCertificate, validateCertificate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyInfoTool()
KeyInfoTool instance.| Method Detail |
|---|
public java.security.PublicKey retrievePublicKey(KeyInfoData keyInfo)
throws KeyRetrievalException
KeyInfoData.retrievePublicKey in class KeyRetrieverkeyInfo - A KeyInfoData instance.PublicKey if keyInfo is a KeyValue or a X509Data containing a X509Certificate, otherwise returns null.StorageAuthenticationException - If an error occurs authenticating to the key source.KeyRetrievalException
public javax.crypto.SecretKey retrieveSymmetricKey(KeyInfoData keyInfo)
throws KeyRetrievalException
KeyInfoData.retrieveSymmetricKey in class KeyRetrieverkeyInfo - A KeyInfoData instance.SecretKey if keyInfo is a XEEncryptedKey, otherwise returns null.StorageAuthenticationException - If an error occurs authenticating to the key source.KeyRetrievalException
public java.security.cert.X509Certificate retrieveCertificate(KeyInfoData keyInfo)
throws KeyRetrievalException
KeyInfoData.retrieveCertificate in class KeyRetrieverkeyInfo - A KeyInfoData instance.X509Certificate if keyInfo is a X509Data containing a X509Certificate, otherwise returns null.StorageAuthenticationException - If an error occurs authenticating to the key source.KeyRetrievalException
|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||