com.sun.xml.wss.impl.misc
Class KeyResolver
java.lang.Object
com.sun.xml.wss.impl.misc.KeyResolver
public class KeyResolver
- extends Object
|
Method Summary |
static 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 Key |
processSecurityTokenReference(KeyInfoHeaderBlock keyInfo,
boolean sig,
FilterProcessingContext context)
|
static Key |
processSTR(KeyInfoHeaderBlock keyInfo,
boolean sig,
FilterProcessingContext context)
|
static Key |
resolveKeyValue(SecurableSoapMessage secureMsg,
com.sun.org.apache.xml.internal.security.keys.content.KeyValue keyValue,
boolean sig,
FilterProcessingContext context)
|
static Key |
resolveSamlAssertion(SecurableSoapMessage secureMsg,
Element samlAssertion,
boolean sig,
FilterProcessingContext context,
String assertionID)
|
static Key |
resolveX509Data(SecurableSoapMessage secureMsg,
com.sun.org.apache.xml.internal.security.keys.content.X509Data x509Data,
boolean sig,
FilterProcessingContext context)
|
static 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 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 Key resolveSamlAssertion(SecurableSoapMessage secureMsg,
Element samlAssertion,
boolean sig,
FilterProcessingContext context,
String assertionID)
throws XWSSecurityException
- Throws:
XWSSecurityException
processSecurityTokenReference
public static Key processSecurityTokenReference(KeyInfoHeaderBlock keyInfo,
boolean sig,
FilterProcessingContext context)
throws XWSSecurityException
- Throws:
XWSSecurityException
resolveX509Token
public static Key resolveX509Token(SecurableSoapMessage secureMsg,
X509SecurityToken token,
boolean sig,
FilterProcessingContext context)
throws XWSSecurityException
- Throws:
XWSSecurityException
resolveKeyValue
public static 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 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 Key processSTR(KeyInfoHeaderBlock keyInfo,
boolean sig,
FilterProcessingContext context)
throws XWSSecurityException
- Throws:
XWSSecurityException
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.