public class CoffeeNetPrincipalExtractor extends 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 |
|---|---|
Object |
extractPrincipal(Map<String,Object> map)
Extracts an instance of
CoffeeNetUserDetails out of the provided map. |
public CoffeeNetPrincipalExtractor(org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor authoritiesExtractor)
public Object extractPrincipal(Map<String,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.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.