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(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 |
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(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 endpointURI(URI uri)
uri - The endpoint URI, null if not specified.public AuthorizationRequest build()
Copyright © 2015 Connect2id Ltd.. All Rights Reserved.