public class SimpleAccessControlBasedAuthenticationProvider extends AbstractAccessControlBasedAuthenticationProvider<org.springframework.security.core.userdetails.User,Principal>
AbstractAccessControlBasedAuthenticationProvider.| Constructor and Description |
|---|
SimpleAccessControlBasedAuthenticationProvider()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.security.core.userdetails.User |
createUser(String username,
String password,
Principal principal,
Set<org.springframework.security.core.GrantedAuthority> authorities)
Creates an instance of
UserDetails that represent the user with the given username. |
protected Principal |
retrievePrincipal(String username,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
Retrieves the internal
Principal object representing the user. |
additionalAuthenticationChecks, retrieveUser, setAccessControlProvider, setPrincipalAccessControlProviderafterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supportspublic SimpleAccessControlBasedAuthenticationProvider()
protected org.springframework.security.core.userdetails.User createUser(String username, String password, Principal principal, Set<org.springframework.security.core.GrantedAuthority> authorities)
AbstractAccessControlBasedAuthenticationProviderUserDetails that represent the user with the given username.createUser in class AbstractAccessControlBasedAuthenticationProvider<org.springframework.security.core.userdetails.User,Principal>username - is the login of the user to create.password - the password of the user.principal - is the internal Principal that has been provided by
AbstractAccessControlBasedAuthenticationProvider.retrievePrincipal(String, UsernamePasswordAuthenticationToken).authorities - are the granted authorities or in other words the permissions of the
user.protected Principal retrievePrincipal(String username, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
AbstractAccessControlBasedAuthenticationProviderPrincipal object representing the user. This can be any object implementing
Principal and can contain additional user details such as profile data. This object is used to
retrieve the (top-level)
AccessControls that have been granted to the user.retrievePrincipal in class AbstractAccessControlBasedAuthenticationProvider<org.springframework.security.core.userdetails.User,Principal>username - is the login of the user.authentication - is the UsernamePasswordAuthenticationToken.Principal.Copyright © 2014–2016 OASP-Team. All rights reserved.