public final class SAMLUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static AssertionWrapper |
getAssertionFromKeyIdentifier(SecurityTokenReference secRef,
Element strElement,
RequestData request,
WSDocInfo wsDocInfo)
Get an AssertionWrapper object from parsing a SecurityTokenReference that uses
a KeyIdentifier that points to a SAML Assertion.
|
static SAMLKeyInfo |
getCredentialFromKeyInfo(Element keyInfoElement,
RequestData data,
WSDocInfo docInfo,
boolean bspCompliant)
This method returns a SAMLKeyInfo corresponding to the credential found in the
KeyInfo (DOM Element) argument.
|
static SAMLKeyInfo |
getCredentialFromSubject(org.opensaml.saml1.core.Assertion assertion,
RequestData data,
WSDocInfo docInfo,
boolean bspCompliant)
Get the SAMLKeyInfo object corresponding to the credential stored in the Subject of a
SAML 1.1 assertion
|
static SAMLKeyInfo |
getCredentialFromSubject(org.opensaml.saml2.core.Assertion assertion,
RequestData data,
WSDocInfo docInfo,
boolean bspCompliant)
Get the SAMLKeyInfo object corresponding to the credential stored in the Subject of a
SAML 2 assertion
|
static SAMLKeyInfo |
getCredentialFromSubject(AssertionWrapper assertion,
RequestData data,
WSDocInfo docInfo,
boolean bspCompliant)
Parse a SAML Assertion to obtain a SAMLKeyInfo object from
the Subject of the assertion
|
public static AssertionWrapper getAssertionFromKeyIdentifier(SecurityTokenReference secRef, Element strElement, RequestData request, WSDocInfo wsDocInfo) throws WSSecurityException
secRef - the SecurityTokenReference to the SAML AssertionstrElement - The SecurityTokenReference DOM elementrequest - The RequestData instance used to obtain configurationwsDocInfo - The WSDocInfo object that holds previous resultsWSSecurityExceptionpublic static SAMLKeyInfo getCredentialFromSubject(AssertionWrapper assertion, RequestData data, WSDocInfo docInfo, boolean bspCompliant) throws WSSecurityException
assertion - The SAML Assertiondata - The RequestData instance used to obtain configurationdocInfo - A WSDocInfo instancebspCompliant - Whether to process tokens in compliance with the BSP spec or notWSSecurityExceptionpublic static SAMLKeyInfo getCredentialFromSubject(org.opensaml.saml1.core.Assertion assertion, RequestData data, WSDocInfo docInfo, boolean bspCompliant) throws WSSecurityException
assertion - The SAML 1.1 assertiondata - The RequestData instance used to obtain configurationdocInfo - A WSDocInfo instancebspCompliant - Whether to process tokens in compliance with the BSP spec or notWSSecurityExceptionpublic static SAMLKeyInfo getCredentialFromSubject(org.opensaml.saml2.core.Assertion assertion, RequestData data, WSDocInfo docInfo, boolean bspCompliant) throws WSSecurityException
assertion - The SAML 2 assertiondata - The RequestData instance used to obtain configurationdocInfo - A WSDocInfo instancebspCompliant - Whether to process tokens in compliance with the BSP spec or notWSSecurityExceptionpublic static SAMLKeyInfo getCredentialFromKeyInfo(Element keyInfoElement, RequestData data, WSDocInfo docInfo, boolean bspCompliant) throws WSSecurityException
keyInfoElement - The KeyInfo as a DOM Elementdata - The RequestData instance used to obtain configurationdocInfo - A WSDocInfo instancebspCompliant - Whether to process tokens in compliance with the BSP spec or notWSSecurityExceptionCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.