public static class DeviceAuthorizationRequest.Builder extends Object
Constructor | Description |
---|---|
Builder(ClientAuthentication clientAuth) |
Creates a new device authorization request builder for an
authenticated request.
|
Builder(DeviceAuthorizationRequest request) |
Creates a new device authorization request builder from the
specified request.
|
Builder(ClientID clientID) |
Creates a new devize authorization request builder.
|
Modifier and Type | Method | Description |
---|---|---|
DeviceAuthorizationRequest |
build() |
Builds a new device authorization request.
|
DeviceAuthorizationRequest.Builder |
customParameter(String name,
String... values) |
Sets a custom parameter.
|
DeviceAuthorizationRequest.Builder |
endpointURI(URI uri) |
Sets the URI of the endpoint (HTTP or HTTPS) for which the
request is intended.
|
DeviceAuthorizationRequest.Builder |
scope(Scope scope) |
Sets the scope.
|
public Builder(ClientID clientID)
clientID
- The client identifier. Corresponds to the client_id
parameter. Must not be null
.public Builder(ClientAuthentication clientAuth)
clientAuth
- The client authentication. Must not be
null
.public Builder(DeviceAuthorizationRequest request)
request
- The device authorization request. Must not be
null
.public DeviceAuthorizationRequest.Builder scope(Scope scope)
scope
parameter.scope
- The scope, null
if not specified.public DeviceAuthorizationRequest.Builder customParameter(String name, String... values)
name
- The parameter name. Must not be null
.values
- The parameter values, null
if not
specified.public DeviceAuthorizationRequest.Builder endpointURI(URI uri)
uri
- The endpoint URI, null
if not specified.public DeviceAuthorizationRequest build()
Copyright © 2019 Connect2id Ltd.. All rights reserved.