SEC-665: Missed a method name...
This commit is contained in:
@@ -25,7 +25,7 @@ public class SimpleMappableAttributesRetriever implements MappableAttributesRetr
|
||||
return copy;
|
||||
}
|
||||
|
||||
public void setMappableRoles(String[] aMappableRoles) {
|
||||
public void setMappableAttributes(String[] aMappableRoles) {
|
||||
this.mappableRoles = new String[aMappableRoles.length];
|
||||
System.arraycopy(aMappableRoles, 0, mappableRoles, 0, mappableRoles.length);
|
||||
}
|
||||
|
||||
@@ -32,9 +32,9 @@ public class UserDetailsByNameServiceWrapper implements AuthenticationUserDetail
|
||||
* Get the UserDetails object from the wrapped UserDetailsService
|
||||
* implementation
|
||||
*/
|
||||
public UserDetails loadUserDetails(Authentication aJ2eeAuthenticationToken) throws UsernameNotFoundException,
|
||||
public UserDetails loadUserDetails(Authentication authentication) throws UsernameNotFoundException,
|
||||
DataAccessException {
|
||||
return userDetailsService.loadUserByUsername(aJ2eeAuthenticationToken.getName());
|
||||
return userDetailsService.loadUserByUsername(authentication.getName());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,8 +60,8 @@ public class J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource extends Aut
|
||||
/**
|
||||
* Get a list of Granted Authorities based on the current user's J2EE roles.
|
||||
*
|
||||
* @param request
|
||||
* The HttpServletRequest
|
||||
* @param request The request against which <tt>isUserInRole</tt> will be called for each role name
|
||||
* returned by the MappableAttributesRetriever.
|
||||
* @return GrantedAuthority[] mapped from the user's J2EE roles.
|
||||
*/
|
||||
private GrantedAuthority[] getJ2eeBasedGrantedAuthorities(HttpServletRequest request) {
|
||||
|
||||
Reference in New Issue
Block a user