Package com.sun.identity.saml2.profile
Class ResponseInfo
- java.lang.Object
-
- com.sun.identity.saml2.profile.CacheObject
-
- com.sun.identity.saml2.profile.ResponseInfo
-
public class ResponseInfo extends CacheObject
This class stores information about the response made to the Service Provider.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml2.profile.CacheObject
time
-
-
Constructor Summary
Constructors Constructor Description ResponseInfo()Needed for deserialization.ResponseInfo(Response response, String binding, String relayState)Constructor creates the ResponseInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssertiongetAssertion()Returns the authn assertionMapgetAttributeMap()Returns the map of the atrributesNameIDgetNameId()Returns the NameIDStringgetProfileBinding()Returns the profile binding, one of the following values:null,SAML2Constants.HTTP_POST,SAML2Constants.HTTP_ARTIFACT,SAML2Constants.PAOSStringgetRelayState()Returns the relayState.ResponsegetResponse()Returns theResponseobject.StringgetSessionIndex()Returns the SessionIndex.booleanisLocalLogin()Tells whether the user has been redirected to perform local login.voidsetAssertion(Assertion assertion)Sets the authn assertionvoidsetAttributeMap(Map attrs)Sets the map of the attributesvoidsetIsLocalLogin(boolean isLocalLogin)Sets the isLocalLogin flag.voidsetNameId(NameID id)Sets the NameIdvoidsetSessionIndex(String index)Sets SessionIndex.-
Methods inherited from class com.sun.identity.saml2.profile.CacheObject
getObject, getTime
-
-
-
-
Constructor Detail
-
ResponseInfo
public ResponseInfo(Response response, String binding, String relayState)
Constructor creates the ResponseInfo.- Parameters:
response- the Responsebinding- Profile binding used, one of the following values:SAML2Constants.HTTP_POST,SAML2Constants.HTTP_ARTIFACT,SAML2Constants.PAOSrelayState- relayState retrieved from ECP RelayState.
-
ResponseInfo
public ResponseInfo()
Needed for deserialization.
-
-
Method Detail
-
getResponse
public Response getResponse()
Returns theResponseobject.- Returns:
- the
Responseobject.
-
getRelayState
public String getRelayState()
Returns the relayState.- Returns:
- the relayState.
-
getProfileBinding
public String getProfileBinding()
Returns the profile binding, one of the following values:null,SAML2Constants.HTTP_POST,SAML2Constants.HTTP_ARTIFACT,SAML2Constants.PAOS- Returns:
- the binding.
-
setAssertion
public void setAssertion(Assertion assertion)
Sets the authn assertion- Parameters:
assertion- the authn assertion in the response
-
getAssertion
public Assertion getAssertion()
Returns the authn assertion- Returns:
- the authn assertion
-
setAttributeMap
public void setAttributeMap(Map attrs)
Sets the map of the attributes- Parameters:
attrs- the attribute map
-
getAttributeMap
public Map getAttributeMap()
Returns the map of the atrributes- Returns:
- the map of the atrributes
-
setNameId
public void setNameId(NameID id)
Sets the NameId- Parameters:
id- the NameId in the assertion
-
getNameId
public NameID getNameId()
Returns the NameID- Returns:
- the NameID
-
setSessionIndex
public void setSessionIndex(String index)
Sets SessionIndex.- Parameters:
index- SessionIndex of the session
-
getSessionIndex
public String getSessionIndex()
Returns the SessionIndex.- Returns:
- the SessionIndex
-
isLocalLogin
public boolean isLocalLogin()
Tells whether the user has been redirected to perform local login.- Returns:
trueif the user was sent to perform local login.
-
setIsLocalLogin
public void setIsLocalLogin(boolean isLocalLogin)
Sets the isLocalLogin flag.- Parameters:
isLocalLogin- The isLocalLogin flag.
-
-