Class CASSPSession
java.lang.Object
net.shibboleth.idp.session.BasicSPSession
net.shibboleth.idp.cas.session.impl.CASSPSession
- All Implemented Interfaces:
SPSession,Component,IdentifiedComponent
Describes a CAS protocol-specific service provider session created in response to a successful ticket validation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a protocol constant for the session suitable for metadata lookup.Get the service URL.Get a unique key identifying this subject's session with the service.Get the ticket ID.booleanGets whether the session allows for logout propagation.toString()Methods inherited from class net.shibboleth.idp.session.BasicSPSession
equals, getCreationInstant, getExpirationInstant, getId, hashCode
-
Field Details
-
ticket
Validated ticket that started the SP session. -
serviceURL
Full service URL.
-
-
Constructor Details
-
CASSPSession
public CASSPSession(@Nonnull @NotEmpty String id, @Nonnull Instant creation, @Nonnull Instant expiration, @Nonnull @NotEmpty String ticketId, @Nonnull @NotEmpty String url) 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 serviceurl- full URL of service, as distinct from the possibly shortened ID
-
-
Method Details
-
getTicketId
Get the ticket ID.- Returns:
- ticket ID
-
getServiceURL
Get the service URL.- Returns:
- service URL
- Since:
- 5.0.0
-
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- Overrides:
getSPSessionKeyin classBasicSPSession- 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- Overrides:
getProtocolin classBasicSPSession- Returns:
- a protocol constant
-
supportsLogoutPropagation
public boolean supportsLogoutPropagation()Gets whether the session allows for logout propagation.- Specified by:
supportsLogoutPropagationin interfaceSPSession- Overrides:
supportsLogoutPropagationin classBasicSPSession- Returns:
- whether the session allows for logout propagation
-
toString
Description copied from class:BasicSPSession- Overrides:
toStringin classBasicSPSession
-