public class J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource extends AbstractPreAuthenticatedAuthenticationDetailsSource
HttpServletRequest.isUserInRole(String)
) into GrantedAuthoritys and stores these in the authentication
details object (.j2eeMappableRoles, j2eeUserRoles2GrantedAuthoritiesMapper, logger
Constructor and Description |
---|
J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource()
Public constructor which overrides the default AuthenticationDetails
class to be used.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String[] |
getUserRoles(java.lang.Object context,
java.lang.String[] mappableRoles)
Obtains the list of user roles based on the current user's J2EE roles.
|
afterPropertiesSet, buildDetails, setMappableRolesRetriever, setUserRoles2GrantedAuthoritiesMapper
setClazz
public J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource()
protected java.lang.String[] getUserRoles(java.lang.Object context, java.lang.String[] mappableRoles)
getUserRoles
in class AbstractPreAuthenticatedAuthenticationDetailsSource
request
- The request against which isUserInRole will be called for each role name
returned by the MappableAttributesRetriever.