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 |
static java.lang.String |
getSAML2SubjectConfirmationMethod(org.opensaml.saml2.core.Assertion assertion)
Get the subject confirmation method of a SAML 2.0 assertion |
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,
TrustException
- Extract certificates or the key available in the SAMLAssertion
- Parameters:
elem
-
- Returns:
- the SAML2 Key Info
- Throws:
org.apache.ws.security.WSSecurityException
TrustException
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
getSAML2SubjectConfirmationMethod
public static java.lang.String getSAML2SubjectConfirmationMethod(org.opensaml.saml2.core.Assertion assertion)
- Get the subject confirmation method of a SAML 2.0 assertion
- Parameters:
assertion
- SAML 2.0 assertion
- Returns:
- Subject Confirmation method