|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.security.saml.SAMLUtil
public class SAMLUtil
Utility methods for SAML stuff
Constructor Summary | |
---|---|
SAMLUtil()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMLUtil()
Method Detail |
---|
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 results
WSSecurityException
public 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 not
WSSecurityException
public 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 not
WSSecurityException
public 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 not
WSSecurityException
public 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 not
WSSecurityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |