|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth2.provider.token.DefaultUserAuthenticationConverter
public class DefaultUserAuthenticationConverter
Default implementation of UserAuthenticationConverter. Converts to and from an Authentication using only its name and
authorities.
| Constructor Summary | |
|---|---|
DefaultUserAuthenticationConverter()
|
|
| Method Summary | |
|---|---|
Map<String,?> |
convertUserAuthentication(org.springframework.security.core.Authentication authentication)
Extract information about the user to be used in an access token (i.e. |
org.springframework.security.core.Authentication |
extractAuthentication(Map<String,?> map)
Inverse of UserAuthenticationConverter.convertUserAuthentication(Authentication). |
void |
setDefaultAuthorities(String[] defaultAuthorities)
Default value for authorities if an Authentication is being created and the input has no data for authorities. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUserAuthenticationConverter()
| Method Detail |
|---|
public void setDefaultAuthorities(String[] defaultAuthorities)
extractAuthentication(Map)
will be unauthenticated.
defaultAuthorities - the defaultAuthorities to set. Default null.public Map<String,?> convertUserAuthentication(org.springframework.security.core.Authentication authentication)
UserAuthenticationConverter
convertUserAuthentication in interface UserAuthenticationConverterauthentication - an authentication representing a user
public org.springframework.security.core.Authentication extractAuthentication(Map<String,?> map)
UserAuthenticationConverterUserAuthenticationConverter.convertUserAuthentication(Authentication). Extracts an Authentication from a map.
extractAuthentication in interface UserAuthenticationConvertermap - a map of user information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||