public interface TicketState
Modifier and Type | Method and Description |
---|---|
Authentication |
getAuthentication()
Authentication information from the ticket.
|
int |
getCountOfUses()
Returns the number of times a ticket was used.
|
java.time.ZonedDateTime |
getCreationTime()
Get the time the ticket was created.
|
java.time.ZonedDateTime |
getLastTimeUsed()
Returns the last time the ticket was used.
|
java.time.ZonedDateTime |
getPreviousTimeUsed()
Get the second to last time used.
|
void |
update()
Records the previous last time this ticket was used as well as
the last usage time.
|
int getCountOfUses()
java.time.ZonedDateTime getLastTimeUsed()
java.time.ZonedDateTime getPreviousTimeUsed()
java.time.ZonedDateTime getCreationTime()
Authentication getAuthentication()
void update()
Tickets themselves are solely responsible to maintain their state. The determination of ticket usage is left up to the implementation and the specific ticket type.
ExpirationPolicy