public class DefaultUserToAuthenticationConverter extends Object implements UserToAuthenticationConverter
GrantedAuthoritys and puts them into a
UsernamePasswordAuthenticationToken. Role names are prefixed, by default with "ROLE_" but this can be configured by
setting the rolePrefix.| Constructor and Description |
|---|
DefaultUserToAuthenticationConverter() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
convert(UserModel user)
Convert the UserModel to an Authentication object.
|
void |
setRolePrefix(String rolePrefix) |
void |
setUserService(UserService userService) |
public DefaultUserToAuthenticationConverter()
public Authentication convert(UserModel user)
UserToAuthenticationConverterconvert in interface UserToAuthenticationConverterpublic void setRolePrefix(String rolePrefix)
public void setUserService(UserService userService)
Copyright © 2017 SAP SE. All Rights Reserved.