org.jasig.cas.ticket.registry
Class AbstractTicketRegistry
java.lang.Object
org.jasig.cas.ticket.registry.AbstractTicketRegistry
- All Implemented Interfaces:
- TicketRegistryState, TicketRegistry
- Direct Known Subclasses:
- AbstractDistributedTicketRegistry, DefaultTicketRegistry
public abstract class AbstractTicketRegistry
- extends Object
- implements TicketRegistry, TicketRegistryState
- Since:
- 3.0.4
This is a published and supported CAS Server 3 API.
- Author:
- Scott Battaglia
|
Field Summary |
protected org.slf4j.Logger |
log
The Commons Logging log instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.slf4j.Logger log
- The Commons Logging log instance.
AbstractTicketRegistry
public AbstractTicketRegistry()
getTicket
public final Ticket getTicket(String ticketId,
Class<? extends Ticket> clazz)
- Description copied from interface:
TicketRegistry
- Retrieve a ticket from the registry. If the ticket retrieved does not
match the expected class, an InvalidTicketException is thrown.
- Specified by:
getTicket in interface TicketRegistry
- Parameters:
ticketId - the id of the ticket we wish to retrieve.clazz - The expected class of the ticket we wish to retrieve.
- Returns:
- the requested ticket.
- Throws:
IllegalArgumentException - if class is null.
ClassCastException - if class does not match requested ticket
class.
sessionCount
public int sessionCount()
- Description copied from interface:
TicketRegistryState
- Computes the number of SSO sessions stored in the ticket registry.
- Specified by:
sessionCount in interface TicketRegistryState
- Returns:
- Number of ticket-granting tickets in the registry at time of invocation
or
Integer.MIN_VALUE if unknown.
serviceTicketCount
public int serviceTicketCount()
- Description copied from interface:
TicketRegistryState
- Computes the number of service tickets stored in the ticket registry.
- Specified by:
serviceTicketCount in interface TicketRegistryState
- Returns:
- Number of service tickets in the registry at time of invocation
or
Integer.MIN_VALUE if unknown.
Copyright © 2004-2013 Jasig. All Rights Reserved.