public class DefaultUserToAuthenticationConverter extends java.lang.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(java.lang.String rolePrefix) |
void |
setUserService(UserService userService) |
public DefaultUserToAuthenticationConverter()
public Authentication convert(UserModel user)
UserToAuthenticationConverterconvert in interface UserToAuthenticationConverterpublic void setRolePrefix(java.lang.String rolePrefix)
public void setUserService(UserService userService)
Copyright © 2018 SAP SE. All Rights Reserved.