Class AuthorizationRequest.Builder

java.lang.Object
com.inrupt.client.openid.AuthorizationRequest.Builder
Enclosing class:
AuthorizationRequest

public static class AuthorizationRequest.Builder extends Object
A class for building AuthorizationRequest objects.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • scope

      public AuthorizationRequest.Builder scope(String scope)
      Add a scope value to the builder.
      Parameters:
      scope - the scope value
      Returns:
      this builder
    • state

      public AuthorizationRequest.Builder state(String state)
      Add a state value to the builder.
      Parameters:
      state - the state value
      Returns:
      this builder
    • nonce

      public AuthorizationRequest.Builder nonce(String nonce)
      Add a nonce value to the builder.
      Parameters:
      nonce - the nonce value
      Returns:
      this builder
    • responseType

      public AuthorizationRequest.Builder responseType(String responseType)
      Add a response type to the builder.
      Parameters:
      responseType - the response type
      Returns:
      this builder
    • codeChallenge

      public AuthorizationRequest.Builder codeChallenge(String codeChallenge)
      Add a code challenge to the builder.
      Parameters:
      codeChallenge - the code challenge
      Returns:
      this builder
    • codeChallengeMethod

      public AuthorizationRequest.Builder codeChallengeMethod(String codeChallengeMethod)
      Add a code challenge method to the builder.
      Parameters:
      codeChallengeMethod - the code challenge method
      Returns:
      this builder
    • build

      public AuthorizationRequest build(String clientId, URI redirectUri)
      Build the authorization request.
      Parameters:
      clientId - the client id
      redirectUri - the redirect URI
      Returns:
      the authorization request