Class AssertionUtil


  • public class AssertionUtil
    extends Object
    Author:
    abhijit.das@Sun.COM
    • Method Detail

      • getSubjectConfirmationKey

        public static Key getSubjectConfirmationKey​(Element assertion,
                                                    CallbackHandler callbackHandler)
                                             throws com.sun.xml.wss.XWSSecurityException
        Retrive the key from HOK SAML Assertion
        Parameters:
        assertion - An org.w3c.dom.Element representation of SAML Assertion
        callbackHandler - A javax.security.auth.callback.CallbackHandler object used to retrive the key
        Returns:
        java.security.Key
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • resolveX509Data

        public static Key resolveX509Data​(org.apache.xml.security.keys.content.X509Data x509Data,
                                          CallbackHandler callbackHandler)
                                   throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • resolveEncryptedKey

        public static Key resolveEncryptedKey​(org.apache.xml.security.encryption.EncryptedKey encryptedKey,
                                              CallbackHandler callbackHandler)
                                       throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • getConfirmationMethod

        public static String getConfirmationMethod​(Element assertion)
      • getSubjectConfirmationKeyInfo

        public static Element getSubjectConfirmationKeyInfo​(Element assertion)
                                                     throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException