@Singleton public class DefaultContextAuthenticationMapper extends Object implements ContextAuthenticationMapper
AuthenticationResponse
from a successful
ldap authentication result.Constructor and Description |
---|
DefaultContextAuthenticationMapper() |
Modifier and Type | Method and Description |
---|---|
AuthenticationResponse |
map(ConvertibleValues<Object> attributes,
String username,
Set<String> groups) |
public AuthenticationResponse map(ConvertibleValues<Object> attributes, String username, Set<String> groups)
map
in interface ContextAuthenticationMapper
attributes
- The attributes in the contextusername
- The username used to authenticategroups
- The roles associated with the userAuthenticationResponse