public class AuthenticationUserDetailsAdapter extends java.lang.Object implements Authentication
UserDetails
to Authentication
.Constructor and Description |
---|
AuthenticationUserDetailsAdapter(UserDetails userDetails)
Deprecated.
|
AuthenticationUserDetailsAdapter(UserDetails userDetails,
java.lang.String rolesKey) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes() |
java.lang.String |
getName() |
public AuthenticationUserDetailsAdapter(UserDetails userDetails, java.lang.String rolesKey)
userDetails
- Authenticated user's representation.rolesKey
- The key name that should used to store the roles@Deprecated public AuthenticationUserDetailsAdapter(UserDetails userDetails)
userDetails
- Authenticated user's representation.@Nonnull public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
getAttributes
in interface Authentication
public java.lang.String getName()
getName
in interface java.security.Principal