Package org.apereo.cas.ticket
Interface TicketFactory
-
- All Known Subinterfaces:
ProxyGrantingTicketFactory,ProxyTicketFactory,ServiceTicketFactory,TicketGrantingTicketFactory,TransientSessionTicketFactory<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TicketFactoryTheTicketFactoryis an abstraction that decides how CAS ticket factory objects are created.- Since:
- 4.2
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_NAMEDefault implementation bean name.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TicketFactoryget(java.lang.Class<? extends Ticket> clazz)Get ticket factory.default java.lang.StringgetName()Gets name.java.lang.Class<? extends Ticket>getTicketType()Gets ticket type.
-
-
-
Field Detail
-
BEAN_NAME
static final java.lang.String BEAN_NAME
Default implementation bean name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
default java.lang.String getName()
Gets name.- Returns:
- the name
-
get
default TicketFactory get(java.lang.Class<? extends Ticket> clazz)
Get ticket factory.- Parameters:
clazz- the clazz- Returns:
- ticket factory object
-
getTicketType
java.lang.Class<? extends Ticket> getTicketType()
Gets ticket type.- Returns:
- the ticket type
-
-