Package net.shibboleth.idp.session
Class BasicSPSession
- java.lang.Object
-
- net.shibboleth.idp.session.BasicSPSession
-
-
Field Summary
Fields Modifier and Type Field Description private InstantcreationInstantThe time when this session was created.private InstantexpirationInstantThe time when this session expires.private StringserviceIdThe unique identifier of the service.
-
Constructor Summary
Constructors Constructor Description BasicSPSession(String id, Instant creation, Instant expiration)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)InstantgetCreationInstant()Get the time when this session was created.InstantgetExpirationInstant()Get the time when this session will expire.StringgetId()StringgetSPSessionKey()Get a unique key identifying this subject's session with the service.inthashCode()StringtoString()
-
-
-
Method Detail
-
getId
@Nonnull @NotEmpty public String getId()
- Specified by:
getIdin interfaceIdentifiedComponent
-
getCreationInstant
@Nonnull public Instant getCreationInstant()
Get the time when this session was created.- Specified by:
getCreationInstantin interfaceSPSession- Returns:
- time when this session was created
-
getExpirationInstant
@Nonnull public Instant getExpirationInstant()
Get the time when this session will expire.- Specified by:
getExpirationInstantin interfaceSPSession- Returns:
- time when this session will expire
-
getSPSessionKey
public String getSPSessionKey()
Get a unique key identifying this subject's session with the service.This will vary based on the type of session, typically based on the protocol used, but it provides a secondary lookup key that may be required in support of other use cases involving that protocol. Not all protocols may require such a key, so null may be returned.
- Specified by:
getSPSessionKeyin interfaceSPSession- Returns:
- a unique key identifying this subject's session with the service, or null
-
-