Package org.forgerock.am.saml2.impl
Class Saml2ResponseData
java.lang.Object
org.forgerock.am.saml2.impl.Saml2ResponseData
Response data from SAML2 IDP, combined here for ease of access.
-
Constructor Summary
ConstructorDescriptionDummy creator, used by databinder to generate this POJO.Saml2ResponseData
(String sessionIndex, Subject subject, Assertion assertion, com.sun.identity.saml2.profile.ResponseInfo responseInfo, AuthnRequest authnRequest) Combine a new set of SAML2 response data as a single object. -
Method Summary
Modifier and TypeMethodDescriptionGet the assertion.Get the original authentication request.com.sun.identity.saml2.profile.ResponseInfo
Get the response info.Get the session index.Get the subject.void
setAssertion
(Assertion assertion) Sets the assertion.void
setResponseInfo
(com.sun.identity.saml2.profile.ResponseInfo responseInfo) Sets the responseInfo value.void
setSessionIndex
(String sessionIndex) Sets the sessionIndex value.void
setSubject
(Subject subject) Sets the subject value.
-
Constructor Details
-
Saml2ResponseData
public Saml2ResponseData()Dummy creator, used by databinder to generate this POJO. -
Saml2ResponseData
public Saml2ResponseData(String sessionIndex, Subject subject, Assertion assertion, com.sun.identity.saml2.profile.ResponseInfo responseInfo, AuthnRequest authnRequest) Combine a new set of SAML2 response data as a single object.- Parameters:
sessionIndex
- Session index used for this authentication. SAML2 specs allow it to be optional (null).subject
- Subject about whom this authentication provides information.assertion
- Assertion for this subject's authentication.responseInfo
- Response Information pertaining to the authentication.authnRequest
- The SAML2 authentication request that was used to initiate SAML.
-
-
Method Details
-
setSubject
Sets the subject value.- Parameters:
subject
- value of the subject.
-
setAssertion
Sets the assertion.- Parameters:
assertion
- value of the assertion.
-
setSessionIndex
Sets the sessionIndex value.- Parameters:
sessionIndex
- value of the sessionIndex.
-
setResponseInfo
public void setResponseInfo(com.sun.identity.saml2.profile.ResponseInfo responseInfo) Sets the responseInfo value.- Parameters:
responseInfo
- value of the responseInfo.
-
getSubject
Get the subject. Will not be null.- Returns:
- the subject.
-
getAssertion
Get the assertion. Will not be null.- Returns:
- the assertion.
-
getSessionIndex
Get the session index. Will not be null.- Returns:
- the session index.
-
getResponseInfo
public com.sun.identity.saml2.profile.ResponseInfo getResponseInfo()Get the response info. Will not be null.- Returns:
- the response info.
-
getAuthnRequest
Get the original authentication request.- Returns:
- The original authentication request.
-