@Deprecated public class DefaultUserAuthenticationConverter extends Object implements UserAuthenticationConverter
UserAuthenticationConverter. Converts to and from an Authentication using only its
name and authorities.
AUTHORITIES, USERNAME| Constructor and Description |
|---|
DefaultUserAuthenticationConverter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,?> |
convertUserAuthentication(org.springframework.security.core.Authentication authentication)
Deprecated.
Extract information about the user to be used in an access token (i.e.
|
org.springframework.security.core.Authentication |
extractAuthentication(Map<String,?> map)
Deprecated.
|
protected Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities(Map<String,?> map)
Deprecated.
|
void |
setDefaultAuthorities(String[] defaultAuthorities)
Deprecated.
Default value for authorities if an Authentication is being created and the input has no data for authorities.
|
void |
setUserClaimName(String claimName)
Deprecated.
Set the name of the user claim to use when extracting an
Authentication from the incoming map
or when converting an Authentication to a map. |
void |
setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
Deprecated.
Optional
UserDetailsService to use when extracting an Authentication from the incoming map. |
public DefaultUserAuthenticationConverter()
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
UserDetailsService to use when extracting an Authentication from the incoming map.userDetailsService - the userDetailsService to setpublic void setUserClaimName(String claimName)
Authentication from the incoming map
or when converting an Authentication to a map.claimName - the claim name to use (default UserAuthenticationConverter.USERNAME)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)
UserAuthenticationConverterconvertUserAuthentication in interface UserAuthenticationConverterauthentication - an authentication representing a userpublic 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 informationprotected Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities(Map<String,?> map)
Copyright © 2021. All rights reserved.