Class AuthorizationRequest

java.lang.Object
com.inrupt.client.openid.AuthorizationRequest

public final class AuthorizationRequest extends Object
A class representing an authorization request at an OpenID provider.
  • Method Details

    • getResponseType

      public String getResponseType()
      Get the OAuth 2.0 response type.
      Returns:
      the response type
    • getScope

      public String getScope()
      Get the OAuth 2.0 scope value.

      The response will be a space-delimited string of scope values.

      Returns:
      the scope value
    • getCodeChallenge

      public String getCodeChallenge()
      Get the PKCE code challenge.
      Returns:
      the code challenge value.
    • getCodeChallengeMethod

      public String getCodeChallengeMethod()
      Get the PKCE code challenge method.
      Returns:
      the code challenge method
    • getClientId

      public String getClientId()
      Get the OAuth 2.0 client id.
      Returns:
      the client id
    • getRedirectUri

      public URI getRedirectUri()
      Get the OAuth 2.0 redirect URI.
      Returns:
      the redirect URI
    • getState

      public String getState()
      Get the OAuth 2.0 state value.
      Returns:
      the state value
    • getNonce

      public String getNonce()
      Get the OpenID Connect nonce value.
      Returns:
      the nonce value
    • newBuilder

      public static AuthorizationRequest.Builder newBuilder()
      Create a new builder object for an authorization request.
      Returns:
      a new builder