public abstract class AbstractTicketRegistry extends Object implements TicketRegistry, TicketRegistryState
This is a published and supported CAS Server 3 API.
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
The Commons Logging logger instance.
|
| Constructor and Description |
|---|
AbstractTicketRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Ticket> |
getTicket(String ticketId,
Class<? extends Ticket> clazz)
Retrieve a ticket from the registry.
|
int |
serviceTicketCount()
Computes the number of service tickets stored in the ticket registry.
|
int |
sessionCount()
Computes the number of SSO sessions stored in the ticket registry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTicket, deleteTicket, getTicket, getTicketspublic final <T extends Ticket> T getTicket(String ticketId, Class<? extends Ticket> clazz)
getTicket in interface TicketRegistryT - the generic ticket type to return that extends TicketticketId - the id of the ticket we wish to retrieve.clazz - The expected class of the ticket we wish to retrieve.IllegalArgumentException - if class is null.ClassCastException - if class does not match requested ticket
class.public int sessionCount()
TicketRegistryStatesessionCount in interface TicketRegistryStateInteger.MIN_VALUE if unknown.public int serviceTicketCount()
TicketRegistryStateserviceTicketCount in interface TicketRegistryStateInteger.MIN_VALUE if unknown.Copyright © 2004-2014 Jasig. All Rights Reserved.