Class ResponseProcessingResultImpl

java.lang.Object
se.swedenconnect.opensaml.saml2.response.ResponseProcessingResultImpl
All Implemented Interfaces:
ResponseProcessingResult

public class ResponseProcessingResultImpl extends Object implements ResponseProcessingResult
Implementation of the ResponseProcessingResult interface.
Author:
Martin Lindström (martin@idsec.se)
  • Constructor Details

    • ResponseProcessingResultImpl

      public ResponseProcessingResultImpl(org.opensaml.saml.saml2.core.Response response, org.opensaml.saml.saml2.core.Assertion assertion)
      Constructor.
      Parameters:
      response - the Response
      assertion - the Assertion
  • Method Details

    • getResponse

      public org.opensaml.saml.saml2.core.Response getResponse()
      Gets the actual Response object.
      Specified by:
      getResponse in interface ResponseProcessingResult
      Returns:
      the Response
    • getResponseId

      public String getResponseId()
      Gets the ID of the Response message that was processed.
      Specified by:
      getResponseId in interface ResponseProcessingResult
      Returns:
      ID of response
    • getInResponseTo

      public String getInResponseTo()
      Gets the InResponseTo attribute from the response that was processed.
      Specified by:
      getInResponseTo in interface ResponseProcessingResult
      Returns:
      the InResponseTo attribute from the response
    • getIssueInstant

      public Instant getIssueInstant()
      Gets the issuance instant of the response.
      Specified by:
      getIssueInstant in interface ResponseProcessingResult
      Returns:
      issue instant
    • getAssertion

      public org.opensaml.saml.saml2.core.Assertion getAssertion()
      Gets the Assertion from the response.
      Specified by:
      getAssertion in interface ResponseProcessingResult
      Returns:
      the Assertion
    • getAttributes

      public List<org.opensaml.saml.saml2.core.Attribute> getAttributes()
      Gets the attributes that are part of the attribute statement of the assertion.
      Specified by:
      getAttributes in interface ResponseProcessingResult
      Returns:
      an (unmodifiable) list of attributes
    • getAuthnContextClassUri

      public String getAuthnContextClassUri()
      Gets the URI for the AuthnContextClassRef element that holds the "level of assurance" under which the authentication was made.
      Specified by:
      getAuthnContextClassUri in interface ResponseProcessingResult
      Returns:
      LoA URI
    • getAuthnInstant

      public Instant getAuthnInstant()
      Gets the authentication instant.
      Specified by:
      getAuthnInstant in interface ResponseProcessingResult
      Returns:
      the instant at which the user authenticated
    • getIssuer

      public String getIssuer()
      Gets the entityID of the issuing IdP.
      Specified by:
      getIssuer in interface ResponseProcessingResult
      Returns:
      entityID for the IdP
    • getSubjectNameID

      public org.opensaml.saml.saml2.core.NameID getSubjectNameID()
      Gets the NameID for the subject.
      Specified by:
      getSubjectNameID in interface ResponseProcessingResult
      Returns:
      the nameID