public class AuthenticationUserDetailsAdapter extends java.lang.Object implements Authentication
UserDetails to Authentication.| Constructor and Description |
|---|
AuthenticationUserDetailsAdapter(UserDetails userDetails,
java.lang.String rolesKey,
java.lang.String nameKey) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
In order to correctly implement the
Serializable specification, this map
should be Map<String, Serializable>, however that would place a burden on
those not requiring serialization, forcing their values to conform to that spec. |
java.lang.String |
getName() |
public AuthenticationUserDetailsAdapter(UserDetails userDetails, java.lang.String rolesKey, java.lang.String nameKey)
userDetails - Authenticated user's representation.rolesKey - The key name that should used to store the rolesnameKey - The key name that should used to store the user's name@NonNull public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
AuthenticationSerializable specification, this map
should be Map<String, Serializable>, however that would place a burden on
those not requiring serialization, forcing their values to conform to that spec.
This is left intentionally as Object in order to meet both use cases and those
requiring serialization must ensure all values in the map implement Serializable.getAttributes in interface Authenticationpublic java.lang.String getName()
getName in interface java.security.Principal