Class AccessTokenRegistration

java.lang.Object
org.apache.cxf.rs.security.oauth2.common.AccessTokenRegistration

public class AccessTokenRegistration extends Object
Captures the information associated with the access token request.
  • Constructor Details

    • AccessTokenRegistration

      public AccessTokenRegistration()
  • Method Details

    • setClient

      public void setClient(Client client)
      Sets the Client instance
      Parameters:
      client - the client
    • getClient

      public Client getClient()
      Returns the Client instance
      Returns:
      the client.
    • setRequestedScope

      public void setRequestedScope(List<String> requestedScope)
      Sets the requested scope
      Parameters:
      requestedScope - the scope
    • getRequestedScope

      public List<String> getRequestedScope()
      Gets the requested scope
      Returns:
      the scope
    • setApprovedScope

      public void setApprovedScope(List<String> approvedScope)
      Sets the scope explicitly approved by the end user
      Parameters:
      approvedScope - the approved scope
    • getApprovedScope

      public List<String> getApprovedScope()
      Gets the scope explicitly approved by the end user
      Returns:
      the scope
    • setSubject

      public void setSubject(UserSubject subject)
      Sets the {@link UserSubject) instance capturing the information about the end user
      Parameters:
      subject - the end user subject
    • getSubject

      public UserSubject getSubject()
      Gets the {@link UserSubject) instance capturing the information about the end user
      Returns:
      the subject
    • setGrantType

      public void setGrantType(String grantType)
      Sets the type of grant which is exchanged for this token
      Parameters:
      grantType - the grant type
    • getGrantType

      public String getGrantType()
      Gets the type of grant which is exchanged for this token
      Returns:
      the grant type
    • getAudiences

      public List<String> getAudiences()
    • setAudiences

      public void setAudiences(List<String> audiences)
    • getClientCodeVerifier

      public String getClientCodeVerifier()
    • setClientCodeVerifier

      public void setClientCodeVerifier(String clientCodeVerifier)
    • getNonce

      public String getNonce()
    • setNonce

      public void setNonce(String nonce)
    • setResponseType

      public void setResponseType(String responseType)
      Set the response type
      Parameters:
      responseType - the response type
    • getResponseType

      public String getResponseType()
      Get the response type
      Returns:
      the response type, null if no redirection flow was used
    • setGrantCode

      public void setGrantCode(String grantCode)
      Set the grant code which was used to request the token
      Parameters:
      grantCode - the grant code
    • getGrantCode

      public String getGrantCode()
      Get the grant code
      Returns:
      the grant code, null if no authorization code grant was used
    • getExtraProperties

      public Map<String,String> getExtraProperties()
    • setExtraProperties

      public void setExtraProperties(Map<String,String> extraProperties)