public static class AuthorizationRequest.Builder extends Object
| Constructor | Description |
|---|---|
Builder(AuthorizationRequest request) |
Creates a new authorisation request builder from the
specified request.
|
Builder(ResponseType rt,
ClientID clientID) |
Creates a new authorisation request builder.
|
| Modifier and Type | Method | Description |
|---|---|---|
AuthorizationRequest |
build() |
Builds a new authorisation request.
|
AuthorizationRequest.Builder |
codeChallenge(CodeChallenge codeChallenge,
CodeChallengeMethod codeChallengeMethod) |
Deprecated.
|
AuthorizationRequest.Builder |
codeChallenge(CodeVerifier codeVerifier,
CodeChallengeMethod codeChallengeMethod) |
Sets the code challenge for Proof Key for Code Exchange
(PKCE) by public OAuth clients.
|
AuthorizationRequest.Builder |
customParameter(String name,
String value) |
Sets the specified additional custom parameter.
|
AuthorizationRequest.Builder |
endpointURI(URI uri) |
Sets the URI of the endpoint (HTTP or HTTPS) for which the
request is intended.
|
AuthorizationRequest.Builder |
redirectionURI(URI redirectURI) |
Sets the redirection URI.
|
AuthorizationRequest.Builder |
responseMode(ResponseMode rm) |
Sets the response mode.
|
AuthorizationRequest.Builder |
scope(Scope scope) |
Sets the scope.
|
AuthorizationRequest.Builder |
state(State state) |
Sets the state.
|
public Builder(ResponseType rt, ClientID clientID)
rt - The response type. Corresponds to the
response_type parameter. Must not be
null.clientID - The client identifier. Corresponds to the
client_id parameter. Must not be
null.public Builder(AuthorizationRequest request)
request - The authorisation request. Must not be
null.public AuthorizationRequest.Builder redirectionURI(URI redirectURI)
redirection_uri parameter.redirectURI - The redirection URI, null if not
specified.public AuthorizationRequest.Builder scope(Scope scope)
scope
parameter.scope - The scope, null if not specified.public AuthorizationRequest.Builder state(State state)
state
parameter.state - The state, null if not specified.public AuthorizationRequest.Builder responseMode(ResponseMode rm)
response_mode parameter. Use of this parameter is
not recommended unless a non-default response mode is
requested (e.g. form_post).rm - The response mode, null if not specified.@Deprecated public AuthorizationRequest.Builder codeChallenge(CodeChallenge codeChallenge, CodeChallengeMethod codeChallengeMethod)
codeChallenge - The code challenge, null
if not specified.codeChallengeMethod - The code challenge method,
null if not specified.public AuthorizationRequest.Builder codeChallenge(CodeVerifier codeVerifier, CodeChallengeMethod codeChallengeMethod)
codeVerifier - The code verifier to use to
compute the code challenge,
null if PKCE is not
specified.codeChallengeMethod - The code challenge method,
null if not specified.
Defaults to
CodeChallengeMethod.PLAIN
if a code verifier is specified.public AuthorizationRequest.Builder customParameter(String name, String value)
name - The parameter name. Must not be null.value - The parameter value, null if not
specified.public AuthorizationRequest.Builder endpointURI(URI uri)
uri - The endpoint URI, null if not specified.public AuthorizationRequest build()
Copyright © 2018 Connect2id Ltd.. All rights reserved.