T - the type of the authentication contextB - the type of the builderprotected abstract static class OAuth2AuthenticationContext.AbstractBuilder<T extends OAuth2AuthenticationContext,B extends OAuth2AuthenticationContext.AbstractBuilder<T,B>>
extends java.lang.Object
OAuth2AuthenticationContext.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBuilder(org.springframework.security.core.Authentication authentication) |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
build()
Builds a new
OAuth2AuthenticationContext. |
B |
context(java.util.function.Consumer<java.util.Map<java.lang.Object,java.lang.Object>> contextConsumer)
A
Consumer of the attributes Map
allowing the ability to add, replace, or remove. |
protected <V> V |
get(java.lang.Object key) |
protected java.util.Map<java.lang.Object,java.lang.Object> |
getContext() |
protected B |
getThis() |
B |
put(java.lang.Object key,
java.lang.Object value)
Associates an attribute.
|
protected AbstractBuilder(org.springframework.security.core.Authentication authentication)
public B put(java.lang.Object key, java.lang.Object value)
key - the key for the attributevalue - the value of the attributeOAuth2AuthenticationContext.AbstractBuilder for further configurationpublic B context(java.util.function.Consumer<java.util.Map<java.lang.Object,java.lang.Object>> contextConsumer)
Consumer of the attributes Map
allowing the ability to add, replace, or remove.contextConsumer - a Consumer of the attributes MapOAuth2AuthenticationContext.AbstractBuilder for further configurationprotected <V> V get(java.lang.Object key)
protected java.util.Map<java.lang.Object,java.lang.Object> getContext()
protected final B getThis()
public abstract T build()
OAuth2AuthenticationContext.OAuth2AuthenticationContext