org.apache.rahas.impl.util
Class SAML2Utils
java.lang.Object
org.apache.rahas.impl.util.SAML2Utils
public class SAML2Utils
- extends java.lang.Object
Method Summary |
static org.w3c.dom.Element |
getElementFromAssertion(org.opensaml.xml.XMLObject xmlObj)
|
static SAML2KeyInfo |
getSAML2KeyInfo(org.opensaml.saml2.core.Assertion assertion,
org.apache.ws.security.components.crypto.Crypto crypto,
javax.security.auth.callback.CallbackHandler cb)
|
static SAML2KeyInfo |
getSAML2KeyInfo(org.w3c.dom.Element elem,
org.apache.ws.security.components.crypto.Crypto crypto,
javax.security.auth.callback.CallbackHandler cb)
Extract certificates or the key available in the SAMLAssertion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAML2Utils
public SAML2Utils()
getElementFromAssertion
public static org.w3c.dom.Element getElementFromAssertion(org.opensaml.xml.XMLObject xmlObj)
throws TrustException
- Throws:
TrustException
getSAML2KeyInfo
public static SAML2KeyInfo getSAML2KeyInfo(org.w3c.dom.Element elem,
org.apache.ws.security.components.crypto.Crypto crypto,
javax.security.auth.callback.CallbackHandler cb)
throws org.apache.ws.security.WSSecurityException
- Extract certificates or the key available in the SAMLAssertion
- Parameters:
elem
-
- Returns:
- the SAML2 Key Info
- Throws:
org.apache.ws.security.WSSecurityException
getSAML2KeyInfo
public static SAML2KeyInfo getSAML2KeyInfo(org.opensaml.saml2.core.Assertion assertion,
org.apache.ws.security.components.crypto.Crypto crypto,
javax.security.auth.callback.CallbackHandler cb)
throws org.apache.ws.security.WSSecurityException
- Throws:
org.apache.ws.security.WSSecurityException