Class ServiceTicket


  • public class ServiceTicket
    extends Ticket
    CAS service ticket.
    • Field Detail

      • forceAuthn

        private final boolean forceAuthn
        Forced authentication flag.
    • Constructor Detail

      • ServiceTicket

        public ServiceTicket​(@Nonnull
                             String id,
                             @Nonnull
                             String service,
                             @Nonnull
                             Instant expiration,
                             boolean renew)
        Creates a new authenticated ticket with an identifier, service, and expiration date.
        Parameters:
        id - Ticket ID.
        service - Service that requested the ticket.
        expiration - Expiration instant.
        renew - True if ticket was issued from forced authentication, false otherwise.
    • Method Detail

      • isRenew

        public boolean isRenew()
        Get whether ticket was issued from forced authentication.
        Returns:
        true if ticket was issued from forced authentication, false otherwise
      • newInstance

        protected Ticket newInstance​(String newId)
        Create a new ticket with this ticket's service and expiration.
        Overrides:
        newInstance in class Ticket
        Parameters:
        newId - new ticket ID
        Returns:
        newly created ticket