Class ResponseProcessingResultImpl
java.lang.Object
se.swedenconnect.opensaml.saml2.response.ResponseProcessingResultImpl
- All Implemented Interfaces:
ResponseProcessingResult
Implementation of the
ResponseProcessingResult
interface.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
ConstructorDescriptionResponseProcessingResultImpl
(org.opensaml.saml.saml2.core.Response response, org.opensaml.saml.saml2.core.Assertion assertion) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.opensaml.saml.saml2.core.Assertion
Gets theAssertion
from the response.List
<org.opensaml.saml.saml2.core.Attribute> Gets the attributes that are part of the attribute statement of the assertion.Gets the URI for theAuthnContextClassRef
element that holds the "level of assurance" under which the authentication was made.Gets the authentication instant.Gets theInResponseTo
attribute from the response that was processed.Gets the issuance instant of the response.Gets the entityID of the issuing IdP.org.opensaml.saml.saml2.core.Response
Gets the actualResponse
object.Gets the ID of theResponse
message that was processed.org.opensaml.saml.saml2.core.NameID
Gets theNameID
for the subject.
-
Constructor Details
-
ResponseProcessingResultImpl
public ResponseProcessingResultImpl(org.opensaml.saml.saml2.core.Response response, org.opensaml.saml.saml2.core.Assertion assertion) Constructor.- Parameters:
response
- the Responseassertion
- the Assertion
-
-
Method Details
-
getResponse
public org.opensaml.saml.saml2.core.Response getResponse()Gets the actualResponse
object.- Specified by:
getResponse
in interfaceResponseProcessingResult
- Returns:
- the
Response
-
getResponseId
Gets the ID of theResponse
message that was processed.- Specified by:
getResponseId
in interfaceResponseProcessingResult
- Returns:
- ID of response
-
getInResponseTo
Gets theInResponseTo
attribute from the response that was processed.- Specified by:
getInResponseTo
in interfaceResponseProcessingResult
- Returns:
- the InResponseTo attribute from the response
-
getIssueInstant
Gets the issuance instant of the response.- Specified by:
getIssueInstant
in interfaceResponseProcessingResult
- Returns:
- issue instant
-
getAssertion
public org.opensaml.saml.saml2.core.Assertion getAssertion()Gets theAssertion
from the response.- Specified by:
getAssertion
in interfaceResponseProcessingResult
- Returns:
- the Assertion
-
getAttributes
Gets the attributes that are part of the attribute statement of the assertion.- Specified by:
getAttributes
in interfaceResponseProcessingResult
- Returns:
- an (unmodifiable) list of attributes
-
getAuthnContextClassUri
Gets the URI for theAuthnContextClassRef
element that holds the "level of assurance" under which the authentication was made.- Specified by:
getAuthnContextClassUri
in interfaceResponseProcessingResult
- Returns:
- LoA URI
-
getAuthnInstant
Gets the authentication instant.- Specified by:
getAuthnInstant
in interfaceResponseProcessingResult
- Returns:
- the instant at which the user authenticated
-
getIssuer
Gets the entityID of the issuing IdP.- Specified by:
getIssuer
in interfaceResponseProcessingResult
- Returns:
- entityID for the IdP
-
getSubjectNameID
public org.opensaml.saml.saml2.core.NameID getSubjectNameID()Gets theNameID
for the subject.- Specified by:
getSubjectNameID
in interfaceResponseProcessingResult
- Returns:
- the nameID
-