public static class OAuth2AuthorizeRequest.Builder
extends java.lang.Object
OAuth2AuthorizeRequest.| Modifier and Type | Method and Description |
|---|---|
OAuth2AuthorizeRequest.Builder |
attribute(java.lang.String name,
java.lang.Object value)
Sets an attribute associated to the request.
|
OAuth2AuthorizeRequest.Builder |
attributes(java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> attributesConsumer)
Provides a
Consumer access to the attributes associated to the request. |
OAuth2AuthorizeRequest |
build()
Builds a new
OAuth2AuthorizeRequest. |
OAuth2AuthorizeRequest.Builder |
principal(Authentication principal)
Sets the
Principal (to be) associated to the authorized client. |
OAuth2AuthorizeRequest.Builder |
principal(java.lang.String principalName)
Sets the name of the
Principal (to be) associated to the authorized client. |
public OAuth2AuthorizeRequest.Builder principal(java.lang.String principalName)
Principal (to be) associated to the authorized client.principalName - the name of the Principal (to be) associated to the authorized clientOAuth2AuthorizeRequest.Builderpublic OAuth2AuthorizeRequest.Builder principal(Authentication principal)
Principal (to be) associated to the authorized client.principal - the Principal (to be) associated to the authorized clientOAuth2AuthorizeRequest.Builderpublic OAuth2AuthorizeRequest.Builder attributes(java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> attributesConsumer)
Consumer access to the attributes associated to the request.attributesConsumer - a Consumer of the attributes associated to the requestOAuth2AuthorizeRequest.Builderpublic OAuth2AuthorizeRequest.Builder attribute(java.lang.String name, java.lang.Object value)
name - the name of the attributevalue - the value of the attributeOAuth2AuthorizeRequest.Builderpublic OAuth2AuthorizeRequest build()
OAuth2AuthorizeRequest.OAuth2AuthorizeRequest