- java.lang.Object
-
- com.sun.xml.wss.saml.AssertionUtil
-
public class AssertionUtil extends Object
- Author:
- abhijit.das@Sun.COM
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AssertionfromElement(Element element)static StringgetConfirmationMethod(Element assertion)static KeygetSubjectConfirmationKey(Element assertion, CallbackHandler callbackHandler)Retrive the key from HOK SAML Assertionstatic ElementgetSubjectConfirmationKeyInfo(Element assertion)static KeyresolveEncryptedKey(org.apache.xml.security.encryption.EncryptedKey encryptedKey, CallbackHandler callbackHandler)static KeyresolveX509Data(org.apache.xml.security.keys.content.X509Data x509Data, CallbackHandler callbackHandler)
-
-
-
Method Detail
-
getSubjectConfirmationKey
public static Key getSubjectConfirmationKey(Element assertion, CallbackHandler callbackHandler) throws XWSSecurityException
Retrive the key from HOK SAML Assertion- Parameters:
assertion- Anorg.w3c.dom.Elementrepresentation of SAML AssertioncallbackHandler- Ajavax.security.auth.callback.CallbackHandlerobject used to retrive the key- Returns:
- java.security.Key
- Throws:
XWSSecurityException
-
resolveX509Data
public static Key resolveX509Data(org.apache.xml.security.keys.content.X509Data x509Data, CallbackHandler callbackHandler) throws XWSSecurityException
- Throws:
XWSSecurityException
-
resolveEncryptedKey
public static Key resolveEncryptedKey(org.apache.xml.security.encryption.EncryptedKey encryptedKey, CallbackHandler callbackHandler) throws XWSSecurityException
- Throws:
XWSSecurityException
-
fromElement
public static Assertion fromElement(Element element) throws SAMLException
- Throws:
SAMLException
-
getSubjectConfirmationKeyInfo
public static Element getSubjectConfirmationKeyInfo(Element assertion) throws XWSSecurityException
- Throws:
XWSSecurityException
-
-