Package org.apereo.cas.ticket
Interface TransientSessionTicket
-
public interface TransientSessionTicket extends Ticket
This isTransientSessionTicketthat allows CAS to use the ticket registry as a distributed session store for short-lived non-specific objects. The intention of this ticket is to encapsulate objects that would otherwise be tracked by the application container's session. By using the ticket registry as a generic session store, all operations that may require session awareness specially in a clustered environment can be freed from that requirement.Note that objects/values put into the session ticket are required to be serializable, just as normal ticket properties would be, depending on the design of the underlying ticket registry.
Transient tickets generally have prominent use when CAS is acting as a proxy to another identity provider where the results of current application session/request need to be stored across the cluster and remembered later.
- Since:
- 5.3.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPREFIXTicket prefix for the delegated authentication request.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(java.lang.String name)Contains property boolean.<T extends java.io.Serializable>
Tget(java.lang.String name, java.lang.Class<T> clazz)Gets property.<T extends java.io.Serializable>
Tget(java.lang.String name, java.lang.Class<T> clazz, T defaultValue)Gets property.java.util.Map<java.lang.String,java.lang.Object>getProperties()Gets properties.<T> TgetProperty(java.lang.String key, java.lang.Class<T> clazz)Gets property.org.apereo.cas.authentication.principal.ServicegetService()Gets service.voidput(java.lang.String name, java.io.Serializable value)Put property.voidputAll(java.util.Map<java.lang.String,java.io.Serializable> props)Put all properties.-
Methods inherited from interface org.apereo.cas.ticket.Ticket
getCountOfUses, getCreationTime, getExpirationPolicy, getId, getPrefix, isExpired, markTicketExpired
-
-
-
-
Field Detail
-
PREFIX
static final java.lang.String PREFIX
Ticket prefix for the delegated authentication request.- See Also:
- Constant Field Values
-
-
Method Detail
-
getProperties
java.util.Map<java.lang.String,java.lang.Object> getProperties()
Gets properties.- Returns:
- the properties
-
getProperty
<T> T getProperty(java.lang.String key, java.lang.Class<T> clazz)Gets property.- Type Parameters:
T- the type parameter- Parameters:
key- the keyclazz- the clazz- Returns:
- the property
-
getService
org.apereo.cas.authentication.principal.Service getService()
Gets service.- Returns:
- the service
-
put
void put(java.lang.String name, java.io.Serializable value)Put property.- Parameters:
name- the namevalue- the value
-
putAll
void putAll(java.util.Map<java.lang.String,java.io.Serializable> props)
Put all properties.- Parameters:
props- the props
-
contains
boolean contains(java.lang.String name)
Contains property boolean.- Parameters:
name- the name- Returns:
- true/false
-
get
<T extends java.io.Serializable> T get(java.lang.String name, java.lang.Class<T> clazz)Gets property.- Type Parameters:
T- the type parameter- Parameters:
name- the nameclazz- the clazz- Returns:
- the property
-
get
<T extends java.io.Serializable> T get(java.lang.String name, java.lang.Class<T> clazz, T defaultValue)Gets property.- Type Parameters:
T- the type parameter- Parameters:
name- the nameclazz- the clazzdefaultValue- the default value- Returns:
- the property
-
-