Interface OAuth20Code

All Superinterfaces:
org.apereo.cas.ticket.AuthenticationAwareTicket, Comparable<org.apereo.cas.ticket.Ticket>, OAuth20Token, Serializable, org.apereo.cas.ticket.ServiceTicket, org.apereo.cas.ticket.Ticket, org.apereo.cas.ticket.TicketGrantingTicketAwareTicket

public interface OAuth20Code extends OAuth20Token
An OAuth code is an OAuth token which can be used only once and has a short lifetime. It is used to grant access tokens.
Since:
5.0.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The prefix for OAuth codes.
  • Method Summary

    Modifier and Type
    Method
    Description
    The PKCE code challenge.
    The PKCE code challenge method.

    Methods inherited from interface org.apereo.cas.ticket.AuthenticationAwareTicket

    getAuthentication

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface org.apereo.cas.ticket.OAuth20Token

    getClaims, getClientId, getGrantType, getResponseType, getScopes, isCode

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

    getService

    Methods inherited from interface org.apereo.cas.ticket.Ticket

    getCountOfUses, getCreationTime, getExpirationPolicy, getId, getLastTimeUsed, getPrefix, getPreviousTimeUsed, isExpired, markTicketExpired, update

    Methods inherited from interface org.apereo.cas.ticket.TicketGrantingTicketAwareTicket

    getTicketGrantingTicket
  • Field Details

  • Method Details

    • getCodeChallenge

      String getCodeChallenge()
      The PKCE code challenge.
      Returns:
      code challenge
    • getCodeChallengeMethod

      String getCodeChallengeMethod()
      The PKCE code challenge method.
      Returns:
      code challenge method (i.e. plain, S256, etc)