|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.authentication.AuthenticationDetailsSourceImpl org.springframework.security.web.authentication.preauth.j2ee.AbstractPreAuthenticatedAuthenticationDetailsSource org.springframework.security.web.authentication.preauth.j2ee.J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource
public class J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource
Implementation of AuthenticationDetailsSource which converts the user's J2EE roles (as obtained by calling
HttpServletRequest.isUserInRole(String)
) into GrantedAuthority
s and stores these in the authentication
details object.
Field Summary |
---|
Fields inherited from class org.springframework.security.web.authentication.preauth.j2ee.AbstractPreAuthenticatedAuthenticationDetailsSource |
---|
j2eeMappableRoles, j2eeUserRoles2GrantedAuthoritiesMapper, logger |
Constructor Summary | |
---|---|
J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource()
Public constructor which overrides the default WebAuthenticationDetails
class to be used. |
Method Summary | |
---|---|
protected java.util.Collection<java.lang.String> |
getUserRoles(java.lang.Object context,
java.util.Set<java.lang.String> mappableRoles)
Obtains the list of user roles based on the current user's J2EE roles. |
Methods inherited from class org.springframework.security.web.authentication.preauth.j2ee.AbstractPreAuthenticatedAuthenticationDetailsSource |
---|
afterPropertiesSet, buildDetails, setMappableRolesRetriever, setUserRoles2GrantedAuthoritiesMapper |
Methods inherited from class org.springframework.security.authentication.AuthenticationDetailsSourceImpl |
---|
setClazz |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource()
WebAuthenticationDetails
class to be used.
Method Detail |
---|
protected java.util.Collection<java.lang.String> getUserRoles(java.lang.Object context, java.util.Set<java.lang.String> mappableRoles)
getUserRoles
in class AbstractPreAuthenticatedAuthenticationDetailsSource
context
- the context object (an HttpRequest, PortletRequest etc)mappableRoles
- the possible roles as determined by the MappableAttributesRetriever
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |