Class CASSPSession
java.lang.Object
net.shibboleth.idp.session.BasicSPSession
net.shibboleth.idp.cas.session.impl.CASSPSession
- All Implemented Interfaces:
SPSession
,SPSessionEx
,Component
,IdentifiedComponent
Describes a CAS protocol-specific service provider session created in response to a successful ticket validation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCASSPSession
(String id, Instant creation, Instant expiration, String ticketId) Creates a new CAS SP session. -
Method Summary
Modifier and TypeMethodDescriptionGet a prototocol constant for the session suitable for metadata lookup.Get a unique key identifying this subject's session with the service.Get the ticket ID.boolean
Gets whether the session allows for logout propagation.toString()
Methods inherited from class net.shibboleth.idp.session.BasicSPSession
equals, getCreationInstant, getExpirationInstant, getId, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
Methods inherited from interface net.shibboleth.idp.session.SPSession
getCreationInstant, getExpirationInstant
-
Field Details
-
ticket
Validated ticket that started the SP session.
-
-
Constructor Details
-
CASSPSession
public CASSPSession(@Nonnull @NotEmpty String id, @Nonnull Instant creation, @Nonnull Instant expiration, @Nonnull @NotEmpty String ticketId) Creates a new CAS SP session.- Parameters:
id
- the identifier of the service associated with this sessioncreation
- creation time of sessionexpiration
- expiration time of sessionticketId
- ticket ID used to gain access to the service
-
-
Method Details
-
getTicketId
Get the ticket ID.- Returns:
- ticket ID
-
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
- Overrides:
getSPSessionKey
in classBasicSPSession
- Returns:
- a unique key identifying this subject's session with the service, or null
-
getProtocol
Get a prototocol constant for the session suitable for metadata lookup.- Specified by:
getProtocol
in interfaceSPSessionEx
- Returns:
- a protocol constant
-
supportsLogoutPropagation
public boolean supportsLogoutPropagation()Gets whether the session allows for logout propagation.- Specified by:
supportsLogoutPropagation
in interfaceSPSessionEx
- Returns:
- whether the session allows for logout propagation
-
toString
Description copied from class:BasicSPSession
- Overrides:
toString
in classBasicSPSession
-