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()
In order to correctly implement the
Serializable specification, this map
should be Map , 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)
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()
Authentication
Serializable
specification, this map
should be Map
, 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 Authentication
public java.lang.String getName()
getName
in interface java.security.Principal