Class AccessTokenRequestContext

java.lang.Object
org.apereo.cas.support.oauth.web.response.accesstoken.ext.AccessTokenRequestContext
All Implemented Interfaces:
Serializable

public class AccessTokenRequestContext extends Object implements Serializable
Since:
5.1.0
See Also:
  • Constructor Details

  • Method Details

    • isCodeToken

      public boolean isCodeToken()
    • isRefreshToken

      public boolean isRefreshToken()
    • builder

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getService

      public org.apereo.cas.authentication.principal.Service getService()
    • getAuthentication

      public org.apereo.cas.authentication.Authentication getAuthentication()
    • getToken

      public OAuth20Token getToken()
    • isGenerateRefreshToken

      public boolean isGenerateRefreshToken()
    • isExpireOldRefreshToken

      public boolean isExpireOldRefreshToken()
    • getRegisteredService

      public org.apereo.cas.support.oauth.services.OAuthRegisteredService getRegisteredService()
    • getTicketGrantingTicket

      public org.apereo.cas.ticket.TicketGrantingTicket getTicketGrantingTicket()
    • getGrantType

      public OAuth20GrantTypes getGrantType()
    • getScopes

      public Set<String> getScopes()
    • getClaims

      public Map<String,Map<String,Object>> getClaims()
    • getParameters

      public Map<String,Object> getParameters()
    • getResponseMode

      public OAuth20ResponseModeTypes getResponseMode()
    • getResponseType

      public OAuth20ResponseTypes getResponseType()
    • getDeviceCode

      public String getDeviceCode()
    • getCodeChallenge

      public String getCodeChallenge()
    • getCodeChallengeMethod

      public String getCodeChallengeMethod()
    • getCodeVerifier

      public String getCodeVerifier()
    • getClientId

      public String getClientId()
    • getRedirectUri

      public String getRedirectUri()
    • getUserProfile

      public org.pac4j.core.profile.UserProfile getUserProfile()
    • getDpopConfirmation

      public String getDpopConfirmation()
    • getDpop

      public String getDpop()
    • withService

      public AccessTokenRequestContext withService(org.apereo.cas.authentication.principal.Service service)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAuthentication

      public AccessTokenRequestContext withAuthentication(org.apereo.cas.authentication.Authentication authentication)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withToken

      public AccessTokenRequestContext withToken(OAuth20Token token)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withGenerateRefreshToken

      public AccessTokenRequestContext withGenerateRefreshToken(boolean generateRefreshToken)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withExpireOldRefreshToken

      public AccessTokenRequestContext withExpireOldRefreshToken(boolean expireOldRefreshToken)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRegisteredService

      public AccessTokenRequestContext withRegisteredService(org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTicketGrantingTicket

      public AccessTokenRequestContext withTicketGrantingTicket(org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withGrantType

      public AccessTokenRequestContext withGrantType(OAuth20GrantTypes grantType)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withScopes

      public AccessTokenRequestContext withScopes(Set<String> scopes)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withClaims

      public AccessTokenRequestContext withClaims(Map<String,Map<String,Object>> claims)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withParameters

      public AccessTokenRequestContext withParameters(Map<String,Object> parameters)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withResponseMode

      public AccessTokenRequestContext withResponseMode(OAuth20ResponseModeTypes responseMode)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withResponseType

      public AccessTokenRequestContext withResponseType(OAuth20ResponseTypes responseType)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDeviceCode

      public AccessTokenRequestContext withDeviceCode(String deviceCode)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCodeChallenge

      public AccessTokenRequestContext withCodeChallenge(String codeChallenge)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCodeChallengeMethod

      public AccessTokenRequestContext withCodeChallengeMethod(String codeChallengeMethod)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCodeVerifier

      public AccessTokenRequestContext withCodeVerifier(String codeVerifier)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withClientId

      public AccessTokenRequestContext withClientId(String clientId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRedirectUri

      public AccessTokenRequestContext withRedirectUri(String redirectUri)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUserProfile

      public AccessTokenRequestContext withUserProfile(org.pac4j.core.profile.UserProfile userProfile)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDpopConfirmation

      public AccessTokenRequestContext withDpopConfirmation(String dpopConfirmation)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDpop

      public AccessTokenRequestContext withDpop(String dpop)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • setDpopConfirmation

      public void setDpopConfirmation(String dpopConfirmation)
    • setDpop

      public void setDpop(String dpop)