Interface OAuthToken

  • All Superinterfaces:
    java.lang.Comparable<org.apereo.cas.ticket.Ticket>, java.io.Serializable, org.apereo.cas.ticket.ServiceTicket, org.apereo.cas.ticket.Ticket
    All Known Subinterfaces:
    AccessToken, OAuthCode, RefreshToken

    public interface OAuthToken
    extends org.apereo.cas.ticket.ServiceTicket
    OAuth tokens are mostly like service tickets: they deal with authentication and service.
    Since:
    5.0.0
    • Field Summary

      • Fields inherited from interface org.apereo.cas.ticket.ServiceTicket

        PREFIX
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apereo.cas.authentication.Authentication getAuthentication()
      Get the current authentication.
      java.util.Collection<java.lang.String> getScopes()
      Get requested scopes requested at the time of issuing this code.
      • Methods inherited from interface java.lang.Comparable

        compareTo
      • Methods inherited from interface org.apereo.cas.ticket.ServiceTicket

        getService, grantProxyGrantingTicket, isFromNewLogin, isValidFor
      • Methods inherited from interface org.apereo.cas.ticket.Ticket

        getCountOfUses, getCreationTime, getExpirationPolicy, getId, getPrefix, getTicketGrantingTicket, isExpired, markTicketExpired
    • Method Detail

      • getAuthentication

        org.apereo.cas.authentication.Authentication getAuthentication()
        Get the current authentication.
        Returns:
        the current authentication.
      • getScopes

        java.util.Collection<java.lang.String> getScopes()
        Get requested scopes requested at the time of issuing this code.
        Returns:
        requested scopes.