public class SAML2Utils extends Object
Constructor and Description |
---|
SAML2Utils() |
Modifier and Type | Method and Description |
---|---|
static Element |
getElementFromAssertion(org.opensaml.xml.XMLObject xmlObj) |
static SAML2KeyInfo |
getSAML2KeyInfo(org.opensaml.saml2.core.Assertion assertion,
org.apache.ws.security.components.crypto.Crypto crypto,
CallbackHandler cb) |
static SAML2KeyInfo |
getSAML2KeyInfo(Element elem,
org.apache.ws.security.components.crypto.Crypto crypto,
CallbackHandler cb)
Extract certificates or the key available in the SAMLAssertion
|
static String |
getSAML2SubjectConfirmationMethod(org.opensaml.saml2.core.Assertion assertion)
Get the subject confirmation method of a SAML 2.0 assertion
|
public static Element getElementFromAssertion(org.opensaml.xml.XMLObject xmlObj) throws TrustException
TrustException
public static SAML2KeyInfo getSAML2KeyInfo(Element elem, org.apache.ws.security.components.crypto.Crypto crypto, CallbackHandler cb) throws org.apache.ws.security.WSSecurityException, TrustException
elem
- org.apache.ws.security.WSSecurityException
TrustException
public static SAML2KeyInfo getSAML2KeyInfo(org.opensaml.saml2.core.Assertion assertion, org.apache.ws.security.components.crypto.Crypto crypto, CallbackHandler cb) throws org.apache.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityException
public static String getSAML2SubjectConfirmationMethod(org.opensaml.saml2.core.Assertion assertion)
assertion
- SAML 2.0 assertionCopyright © Apache Software Foundation. All Rights Reserved.