Class AuthorizationRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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