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
@ThreadSafe public class BasicSPSession extends Object implements SPSession
Implementation support for a concrete
SPSession
implementation.-
Field Summary
Fields Modifier and Type Field Description private Instant
creationInstant
The time when this session was created.private Instant
expirationInstant
The time when this session expires.private String
serviceId
The unique identifier of the service. -
Constructor Summary
Constructors Constructor Description BasicSPSession(String id, Instant creation, Instant expiration)
Constructor. -
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
Instant
getCreationInstant()
Get the time when this session was created.Instant
getExpirationInstant()
Get the time when this session will expire.String
getId()
String
getSPSessionKey()
Get a unique key identifying this subject's session with the service.int
hashCode()
String
toString()
-
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
-