public class CoffeeNetPrincipalExtractor
extends java.lang.Object
implements org.springframework.boot.autoconfigure.security.oauth2.resource.PrincipalExtractor
CoffeeNetUserDetails out of the response of the user endpoint of the auth-server. It
is used by
UserInfoTokenServices.getPrincipal(Map).| Constructor and Description |
|---|
CoffeeNetPrincipalExtractor(org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor authoritiesExtractor) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
extractPrincipal(java.util.Map<java.lang.String,java.lang.Object> map)
Extracts an instance of
CoffeeNetUserDetails out of the provided map. |
public CoffeeNetPrincipalExtractor(org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor authoritiesExtractor)
public java.lang.Object extractPrincipal(java.util.Map<java.lang.String,java.lang.Object> map)
CoffeeNetUserDetails out of the provided map.extractPrincipal in interface org.springframework.boot.autoconfigure.security.oauth2.resource.PrincipalExtractormap - The map that contains all information of the user endpoint of the auth-server.CoffeeNetUserDetails. Returns an instance HumanCoffeeNetUser that
returns UNKNOWN_VALUE for every field.