Interface Ticket

    • Method Detail

      • getId

        java.lang.String getId()
        Method to retrieve the id.
        Returns:
        the id
      • getCreationTime

        java.time.ZonedDateTime getCreationTime()
        Method to return the time the Ticket was created.
        Returns:
        the time the ticket was created.
      • getCountOfUses

        int getCountOfUses()
        Gets count of uses.
        Returns:
        the number of times this ticket was used.
      • getPrefix

        java.lang.String getPrefix()
        Gets prefix.
        Returns:
        the prefix
      • isExpired

        boolean isExpired()
        Determines if the ticket is expired. Most common implementations might collaborate with ExpirationPolicy strategy.
        Returns:
        true, if the ticket is expired
        See Also:
        ExpirationPolicy
      • getExpirationPolicy

        ExpirationPolicy getExpirationPolicy()
        Get expiration policy associated with ticket.
        Returns:
        the expiration policy
      • markTicketExpired

        void markTicketExpired()
        Mark a ticket as expired.