public class AssertionAttributeExtractor extends Object
Constructor and Description |
---|
AssertionAttributeExtractor(org.opensaml.saml2.core.StatusResponseType samlResponse)
Parse the SAML2 Response element and extracts included information
INFO: Actually, only the first SAML2 Assertion of the SAML2 Response is used! |
Modifier and Type | Method and Description |
---|---|
boolean |
containsAllRequiredAttributes()
check attributes from assertion with minimal required attribute list
|
boolean |
containsAllRequiredAttributes(Collection<String> attributeNameList)
check attributes from assertion with attributeNameList
bPK or enc_bPK are always needed
|
boolean |
containsAttribute(String attributeName) |
Set<String> |
getAllIncludeAttributeNames()
Return all include PVP attribute names
|
List<org.opensaml.saml2.core.Attribute> |
getAllResponseAttributes(int attrStatementID)
Get all SAML2 attributes of specific SAML2 AttributeStatement element
|
List<org.opensaml.saml2.core.Attribute> |
getAllResponseAttributesFromFirstAttributeStatement()
Get all SAML2 attributes from first SAML2 AttributeStatement element
|
Date |
getAssertionNotOnOrAfter()
Get the Assertion validTo period
Primarily, the 'SessionNotOnOrAfter' attribute in the SAML2 'AuthnStatment' element is used.
|
List<String> |
getAttributeValues(String attributeName) |
org.opensaml.saml2.core.Assertion |
getFullAssertion() |
String |
getNameID() |
String |
getQAALevel() |
String |
getSessionIndex() |
String |
getSingleAttributeValue(String attributeName) |
public AssertionAttributeExtractor(org.opensaml.saml2.core.StatusResponseType samlResponse) throws AssertionAttributeExtractorExeption
samlResponse
- SAML2 ResponseAssertionAttributeExtractorExeption
public List<org.opensaml.saml2.core.Attribute> getAllResponseAttributesFromFirstAttributeStatement()
public List<org.opensaml.saml2.core.Attribute> getAllResponseAttributes(int attrStatementID)
attrStatementID
- List ID of the AttributeStatement elementpublic boolean containsAllRequiredAttributes()
public boolean containsAllRequiredAttributes(Collection<String> attributeNameList)
List
- of attributes which are requiredpublic boolean containsAttribute(String attributeName)
public Set<String> getAllIncludeAttributeNames()
public String getNameID() throws AssertionAttributeExtractorExeption
public String getSessionIndex() throws AssertionAttributeExtractorExeption
public String getQAALevel() throws AssertionAttributeExtractorExeption
AssertionAttributeExtractorExeption
public org.opensaml.saml2.core.Assertion getFullAssertion()
public Date getAssertionNotOnOrAfter()
Copyright © 2017. All rights reserved.