com.sun.xml.wss.impl.misc
Class KeyResolver
java.lang.Object
com.sun.xml.wss.impl.misc.KeyResolver
public class KeyResolver
- extends java.lang.Object
|
Method Summary |
static java.security.Key |
getKey(KeyInfoHeaderBlock keyInfo,
boolean sig,
FilterProcessingContext context)
If a SecurityTokenReference is present inside the KeyInfo,
the return value is an instance of PrivateKey (if sig is false) or
PublicKey (if sig is true). |
static java.security.Key |
processSecurityTokenReference(KeyInfoHeaderBlock keyInfo,
boolean sig,
FilterProcessingContext context)
|
static java.security.Key |
processSTR(KeyInfoHeaderBlock keyInfo,
boolean sig,
FilterProcessingContext context)
|
static java.security.Key |
resolveKeyValue(SecurableSoapMessage secureMsg,
com.sun.org.apache.xml.internal.security.keys.content.KeyValue keyValue,
boolean sig,
FilterProcessingContext context)
|
static java.security.Key |
resolveSamlAssertion(SecurableSoapMessage secureMsg,
org.w3c.dom.Element samlAssertion,
boolean sig,
FilterProcessingContext context,
java.lang.String assertionID)
|
static java.security.Key |
resolveX509Data(SecurableSoapMessage secureMsg,
com.sun.org.apache.xml.internal.security.keys.content.X509Data x509Data,
boolean sig,
FilterProcessingContext context)
|
static java.security.Key |
resolveX509Token(SecurableSoapMessage secureMsg,
X509SecurityToken token,
boolean sig,
FilterProcessingContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyResolver
public KeyResolver()
getKey
public static java.security.Key getKey(KeyInfoHeaderBlock keyInfo,
boolean sig,
FilterProcessingContext context)
throws XWSSecurityException
- If a SecurityTokenReference is present inside the KeyInfo,
the return value is an instance of PrivateKey (if sig is false) or
PublicKey (if sig is true).
Else If a KeyName is present inside the KeyInfo, then the return
value is an instance of SecretKey.
Else, an XWSSecurityException is thrown.
- Parameters:
keyInfo - sig - true if this method is called by a signature verifier, false if
called by a decryptersecureMsg -
- Throws:
XWSSecurityException
resolveSamlAssertion
public static java.security.Key resolveSamlAssertion(SecurableSoapMessage secureMsg,
org.w3c.dom.Element samlAssertion,
boolean sig,
FilterProcessingContext context,
java.lang.String assertionID)
throws XWSSecurityException
- Throws:
XWSSecurityException
processSecurityTokenReference
public static java.security.Key processSecurityTokenReference(KeyInfoHeaderBlock keyInfo,
boolean sig,
FilterProcessingContext context)
throws XWSSecurityException
- Throws:
XWSSecurityException
resolveX509Token
public static java.security.Key resolveX509Token(SecurableSoapMessage secureMsg,
X509SecurityToken token,
boolean sig,
FilterProcessingContext context)
throws XWSSecurityException
- Throws:
XWSSecurityException
resolveKeyValue
public static java.security.Key resolveKeyValue(SecurableSoapMessage secureMsg,
com.sun.org.apache.xml.internal.security.keys.content.KeyValue keyValue,
boolean sig,
FilterProcessingContext context)
throws XWSSecurityException
- Throws:
XWSSecurityException
resolveX509Data
public static java.security.Key resolveX509Data(SecurableSoapMessage secureMsg,
com.sun.org.apache.xml.internal.security.keys.content.X509Data x509Data,
boolean sig,
FilterProcessingContext context)
throws XWSSecurityException
- Throws:
XWSSecurityException
processSTR
public static java.security.Key processSTR(KeyInfoHeaderBlock keyInfo,
boolean sig,
FilterProcessingContext context)
throws XWSSecurityException
- Throws:
XWSSecurityException
Copyright © 2005-2012 Oracle Corporation. All Rights Reserved.