public static class AuthorizationRequest.Builder extends Object
Constructor and Description |
---|
AuthorizationRequest.Builder(ResponseType rt,
ClientID clientID)
Creates a new authorisation request builder.
|
Modifier and Type | Method and Description |
---|---|
AuthorizationRequest |
build()
Builds a new authorisation request.
|
AuthorizationRequest.Builder |
endpointURI(URL uri)
Sets the URI of the endpoint (HTTP or HTTPS) for which the
request is intended.
|
AuthorizationRequest.Builder |
redirectionURI(URL redirectURI)
Sets the redirection URI.
|
AuthorizationRequest.Builder |
scope(Scope scope)
Sets the scope.
|
AuthorizationRequest.Builder |
state(State state)
Sets the state.
|
public AuthorizationRequest.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 AuthorizationRequest.Builder redirectionURI(URL 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 endpointURI(URL uri)
uri
- The endpoint URI, null
if not specified.public AuthorizationRequest build()
Copyright © 2014 NimbusDS. All Rights Reserved.