com.sun.xml.wss.saml
Class AssertionUtil

java.lang.Object
  extended by com.sun.xml.wss.saml.AssertionUtil

public class AssertionUtil
extends java.lang.Object


Method Summary
static Assertion fromElement(org.w3c.dom.Element element)
           
static java.lang.String getConfirmationMethod(org.w3c.dom.Element assertion)
           
static java.security.Key getSubjectConfirmationKey(org.w3c.dom.Element assertion, javax.security.auth.callback.CallbackHandler callbackHandler)
          Retrive the key from HOK SAML Assertion
static org.w3c.dom.Element getSubjectConfirmationKeyInfo(org.w3c.dom.Element assertion)
           
static java.security.Key resolveEncryptedKey(com.sun.org.apache.xml.internal.security.encryption.EncryptedKey encryptedKey, javax.security.auth.callback.CallbackHandler callbackHandler)
           
static java.security.Key resolveX509Data(com.sun.org.apache.xml.internal.security.keys.content.X509Data x509Data, javax.security.auth.callback.CallbackHandler callbackHandler)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSubjectConfirmationKey

public static java.security.Key getSubjectConfirmationKey(org.w3c.dom.Element assertion,
                                                          javax.security.auth.callback.CallbackHandler callbackHandler)
                                                   throws 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:
XWSSecurityException

resolveX509Data

public static java.security.Key resolveX509Data(com.sun.org.apache.xml.internal.security.keys.content.X509Data x509Data,
                                                javax.security.auth.callback.CallbackHandler callbackHandler)
                                         throws XWSSecurityException
Throws:
XWSSecurityException

resolveEncryptedKey

public static java.security.Key resolveEncryptedKey(com.sun.org.apache.xml.internal.security.encryption.EncryptedKey encryptedKey,
                                                    javax.security.auth.callback.CallbackHandler callbackHandler)
                                             throws XWSSecurityException
Throws:
XWSSecurityException

fromElement

public static Assertion fromElement(org.w3c.dom.Element element)
                             throws SAMLException
Throws:
SAMLException

getConfirmationMethod

public static java.lang.String getConfirmationMethod(org.w3c.dom.Element assertion)

getSubjectConfirmationKeyInfo

public static org.w3c.dom.Element getSubjectConfirmationKeyInfo(org.w3c.dom.Element assertion)
                                                         throws XWSSecurityException
Throws:
XWSSecurityException


Copyright ? 2005 Sun Microsystems, Inc. All Rights Reserved.