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
Modifier and TypeMethodDescriptionbooleanGet the time when this session was created.Get the time when this session will expire.getId()Get a protocol constant for the session suitable for metadata lookup.Get a unique key identifying this subject's session with the service.inthashCode()booleanGets whether the session allows for logout propagation.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:
getIdin interfaceIdentifiedComponent
-
getCreationInstant
Get the time when this session was created.- Specified by:
getCreationInstantin interfaceSPSession- Returns:
- time when this session was created
-
getExpirationInstant
Get the time when this session will expire.- Specified by:
getExpirationInstantin 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:
getSPSessionKeyin interfaceSPSession- Returns:
- a unique key identifying this subject's session with the service, or null
-
getProtocol
Get a protocol constant for the session suitable for metadata lookup.- Specified by:
getProtocolin interfaceSPSession- Returns:
- a protocol constant
-
supportsLogoutPropagation
public boolean supportsLogoutPropagation()Gets whether the session allows for logout propagation.- Specified by:
supportsLogoutPropagationin interfaceSPSession- Returns:
- whether the session allows for logout propagation
-
hashCode
public int hashCode() -
equals
-
toString
-