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 TypeMethodDescriptionGets theAssertionfrom the response.Gets the attributes that are part of the attribute statement of the assertion.Gets the URI for theAuthnContextClassRefelement that holds the "level of assurance" under which the authentication was made.Gets the authentication instant.Gets theInResponseToattribute from the response that was processed.Gets the issuance instant of the response.Gets the entityID of the issuing IdP.Gets the actualResponseobject.Gets the ID of theResponsemessage that was processed.Gets theNameIDfor the subject.
-
Method Details
-
getResponseId
String getResponseId()Gets the ID of theResponsemessage that was processed.- Returns:
- ID of response
-
getInResponseTo
String getInResponseTo()Gets theInResponseToattribute 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
Response getResponse()Gets the actualResponseobject.- Returns:
- the
Response
-
getAssertion
Assertion getAssertion()Gets theAssertionfrom the response.- Returns:
- the Assertion
-
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 theAuthnContextClassRefelement 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
NameID getSubjectNameID()Gets theNameIDfor the subject.- Returns:
- the nameID
-