Interface ResponseProcessingResult
- All Known Implementing Classes:
ResponseProcessingResultImpl
public interface ResponseProcessingResult
Interface that describes the result of a response processing operation. It contains the actual
Response
and
Assertion
objects that really holds all information, but also "easy to access" methods of the elements that
are of most interest.
Note that only successful responses are represented. Error responses are represented using the
ResponseStatusErrorException
.
- Author:
- Martin Lindström (martin@idsec.se)
-
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.
-
Method Details
-
getResponseId
String getResponseId()Gets the ID of theResponse
message that was processed.- Returns:
- ID of response
-
getInResponseTo
String getInResponseTo()Gets theInResponseTo
attribute from the response that was processed.- Returns:
- the InResponseTo attribute from the response
-
getIssueInstant
Instant getIssueInstant()Gets the issuance instant of the response.- Returns:
- issue instant
-
getResponse
org.opensaml.saml.saml2.core.Response getResponse()Gets the actualResponse
object.- Returns:
- the
Response
-
getAssertion
org.opensaml.saml.saml2.core.Assertion getAssertion()Gets theAssertion
from the response.- Returns:
- the Assertion
-
getAttributes
List<org.opensaml.saml.saml2.core.Attribute> getAttributes()Gets the attributes that are part of the attribute statement of the assertion.- Returns:
- an (unmodifiable) list of attributes
-
getAuthnContextClassUri
String getAuthnContextClassUri()Gets the URI for theAuthnContextClassRef
element that holds the "level of assurance" under which the authentication was made.- Returns:
- LoA URI
-
getAuthnInstant
Instant getAuthnInstant()Gets the authentication instant.- Returns:
- the instant at which the user authenticated
-
getIssuer
String getIssuer()Gets the entityID of the issuing IdP.- Returns:
- entityID for the IdP
-
getSubjectNameID
org.opensaml.saml.saml2.core.NameID getSubjectNameID()Gets theNameID
for the subject.- Returns:
- the nameID
-