Class AuthnSessionData
java.lang.Object
org.sourceid.saml20.service.session.data.AuthnSessionData
An class containing data for an end user session associated with a specific authentication source.
Storage implementations are responsible for saving all the fields in this object and returning them
unchanged upon request.
- Since:
- 10.3
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty instance.AuthnSessionData(String sessionGroupId, String attributeHash, String sessionData) Create an instance with the specified field values. -
Method Summary
Modifier and TypeMethodDescriptionGet the attribute hash for this authentication session.Get the actual data for the authentication session.Get the ID of the session group this authentication session belongs to.voidsetAttributeHash(String attributeHash) Set the attribute hash for the authentication session.voidsetSessionData(String sessionData) Set the actual data for the authentication session.voidsetSessionGroupId(String sessionGroupId) Set the ID of the session group this authentication session belongs to.
-
Constructor Details
-
AuthnSessionData
public AuthnSessionData()Create an empty instance. -
AuthnSessionData
Create an instance with the specified field values.- Parameters:
sessionGroupId- ID of the session group this authentication session belongs toattributeHash- A hash of this session's attributessessionData- The session data string
-
-
Method Details
-
getSessionGroupId
Get the ID of the session group this authentication session belongs to.- Returns:
- The ID of the session group
-
setSessionGroupId
Set the ID of the session group this authentication session belongs to.- Parameters:
sessionGroupId- The ID of the session group.
-
getAttributeHash
Get the attribute hash for this authentication session. This hash is only guaranteed to be unique within the session group. The authentication session is uniquely identified by the combination of the session group ID and the attribute hash.- Returns:
- A hash of the authentication session's attributes
-
setAttributeHash
Set the attribute hash for the authentication session.- Parameters:
attributeHash- The attribute hash for the authentication session.
-
getSessionData
Get the actual data for the authentication session. This is an opaque string whose format may change in future versions of PingFederate.- Returns:
- The actual data for this authentication session.
-
setSessionData
Set the actual data for the authentication session.- Parameters:
sessionData- The actual data for this authentication session.
-