Package | Description |
---|---|
org.springframework.security.oauth2.server.authorization |
Modifier and Type | Method and Description |
---|---|
OAuth2Authorization.Builder | OAuth2Authorization.Builder.accessToken(OAuth2AccessToken accessToken) Sets the access token credential. |
OAuth2Authorization.Builder | OAuth2Authorization.Builder.attribute(String name, Object value) Adds an attribute associated to the authorization. |
OAuth2Authorization.Builder | OAuth2Authorization.Builder.attributes(Consumer<Map<String,Object>> attributesConsumer) A Consumer of the attributes Map allowing the ability to add, replace, or remove. |
static OAuth2Authorization.Builder | OAuth2Authorization.from(OAuth2Authorization authorization) Returns a new OAuth2Authorization.Builder , initialized with the values from the provided authorization . |
OAuth2Authorization.Builder | OAuth2Authorization.Builder.principalName(String principalName) Sets the resource owner's Principal name. |
static OAuth2Authorization.Builder | OAuth2Authorization.withRegisteredClient(RegisteredClient registeredClient) Returns a new OAuth2Authorization.Builder , initialized with the provided RegisteredClient.getId() . |