public static class OAuth2AuthorizationRequest.Builder
extends java.lang.Object
OAuth2AuthorizationRequest.| Modifier and Type | Method and Description |
|---|---|
OAuth2AuthorizationRequest.Builder |
additionalParameters(java.util.Map<java.lang.String,java.lang.Object> additionalParameters)
Sets the additional parameters used in the request.
|
OAuth2AuthorizationRequest.Builder |
attributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
Sets the attributes associated to the request.
|
OAuth2AuthorizationRequest.Builder |
authorizationRequestUri(java.lang.String authorizationRequestUri)
Sets the
URI string representation of the OAuth 2.0 Authorization Request. |
OAuth2AuthorizationRequest.Builder |
authorizationUri(java.lang.String authorizationUri)
Sets the uri for the authorization endpoint.
|
OAuth2AuthorizationRequest |
build()
Builds a new
OAuth2AuthorizationRequest. |
OAuth2AuthorizationRequest.Builder |
clientId(java.lang.String clientId)
Sets the client identifier.
|
OAuth2AuthorizationRequest.Builder |
redirectUri(java.lang.String redirectUri)
Sets the uri for the redirection endpoint.
|
OAuth2AuthorizationRequest.Builder |
scope(java.lang.String... scope)
Sets the scope(s).
|
OAuth2AuthorizationRequest.Builder |
scopes(java.util.Set<java.lang.String> scopes)
Sets the scope(s).
|
OAuth2AuthorizationRequest.Builder |
state(java.lang.String state)
Sets the state.
|
public OAuth2AuthorizationRequest.Builder authorizationUri(java.lang.String authorizationUri)
authorizationUri - the uri for the authorization endpointOAuth2AuthorizationRequest.Builderpublic OAuth2AuthorizationRequest.Builder clientId(java.lang.String clientId)
clientId - the client identifierOAuth2AuthorizationRequest.Builderpublic OAuth2AuthorizationRequest.Builder redirectUri(java.lang.String redirectUri)
redirectUri - the uri for the redirection endpointOAuth2AuthorizationRequest.Builderpublic OAuth2AuthorizationRequest.Builder scope(java.lang.String... scope)
scope - the scope(s)OAuth2AuthorizationRequest.Builderpublic OAuth2AuthorizationRequest.Builder scopes(java.util.Set<java.lang.String> scopes)
scopes - the scope(s)OAuth2AuthorizationRequest.Builderpublic OAuth2AuthorizationRequest.Builder state(java.lang.String state)
state - the stateOAuth2AuthorizationRequest.Builderpublic OAuth2AuthorizationRequest.Builder additionalParameters(java.util.Map<java.lang.String,java.lang.Object> additionalParameters)
additionalParameters - the additional parameters used in the requestOAuth2AuthorizationRequest.Builderpublic OAuth2AuthorizationRequest.Builder attributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes - the attributes associated to the requestOAuth2AuthorizationRequest.Builderpublic OAuth2AuthorizationRequest.Builder authorizationRequestUri(java.lang.String authorizationRequestUri)
URI string representation of the OAuth 2.0 Authorization Request.
NOTE: The URI string is required to be encoded in the
application/x-www-form-urlencoded MIME format.
authorizationRequestUri - the URI string representation of the OAuth 2.0 Authorization RequestOAuth2AuthorizationRequest.Builderpublic OAuth2AuthorizationRequest build()
OAuth2AuthorizationRequest.OAuth2AuthorizationRequest