Package net.shibboleth.idp.session
Class BasicSPSession
java.lang.Object
net.shibboleth.idp.session.BasicSPSession
- All Implemented Interfaces:
SPSession
,Component
,IdentifiedComponent
- Direct Known Subclasses:
CASSPSession
,SAML1SPSession
,SAML2SPSession
Implementation support for a concrete
SPSession
implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicSPSession
(String id, Instant creation, Instant expiration) Constructor. -
Method Summary
-
Field Details
-
serviceId
The unique identifier of the service. -
creationInstant
The time when this session was created. -
expirationInstant
The time when this session expires.
-
-
Constructor Details
-
Method Details
-
getId
- Specified by:
getId
in interfaceIdentifiedComponent
-
getCreationInstant
Get the time when this session was created.- Specified by:
getCreationInstant
in interfaceSPSession
- Returns:
- time when this session was created
-
getExpirationInstant
Get the time when this session will expire.- Specified by:
getExpirationInstant
in interfaceSPSession
- Returns:
- time when this session will expire
-
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:
getSPSessionKey
in interfaceSPSession
- Returns:
- a unique key identifying this subject's session with the service, or null
-
hashCode
public int hashCode() -
equals
-
toString
-