Class ResponseProcessingResultImpl
- java.lang.Object
-
- se.litsec.opensaml.saml2.common.response.ResponseProcessingResultImpl
-
- All Implemented Interfaces:
ResponseProcessingResult
public class ResponseProcessingResultImpl extends Object implements ResponseProcessingResult
Implementation of theResponseProcessingResultinterface.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description ResponseProcessingResultImpl(Assertion assertion)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssertiongetAssertion()Returns theAssertionfrom the response.List<Attribute>getAttributes()Returns the attributes that are part of the attribute statement of the assertion.StringgetAuthnContextClassUri()Returns the URI for theAuthnContextClassRefelement that holds the "level of assurance" under which the authentication was made.InstantgetAuthnInstant()Returns the authentication instant.StringgetIssuer()Returns the entityID of the issuing IdP.NameIDgetSubjectNameID()Returns theNameIDfor the subject.
-
-
-
Constructor Detail
-
ResponseProcessingResultImpl
public ResponseProcessingResultImpl(Assertion assertion)
Constructor.- Parameters:
assertion- theAssertion
-
-
Method Detail
-
getAssertion
public Assertion getAssertion()
Returns theAssertionfrom the response.- Specified by:
getAssertionin interfaceResponseProcessingResult- Returns:
- the
Assertion
-
getAttributes
public List<Attribute> getAttributes()
Returns the attributes that are part of the attribute statement of the assertion.- Specified by:
getAttributesin interfaceResponseProcessingResult- Returns:
- an (unmodifiable) list of attributes
-
getAuthnContextClassUri
public String getAuthnContextClassUri()
Returns the URI for theAuthnContextClassRefelement that holds the "level of assurance" under which the authentication was made.- Specified by:
getAuthnContextClassUriin interfaceResponseProcessingResult- Returns:
- LoA URI
-
getAuthnInstant
public Instant getAuthnInstant()
Returns the authentication instant.- Specified by:
getAuthnInstantin interfaceResponseProcessingResult- Returns:
- the instant at which the user authenticated
-
getIssuer
public String getIssuer()
Returns the entityID of the issuing IdP.- Specified by:
getIssuerin interfaceResponseProcessingResult- Returns:
- entityID for the IdP
-
getSubjectNameID
public NameID getSubjectNameID()
Returns theNameIDfor the subject.- Specified by:
getSubjectNameIDin interfaceResponseProcessingResult- Returns:
- the nameID
-
-