| |
|
| java.lang.Object org.jamwiki.authentication.InMemoryDaoWithDefaultRoles
InMemoryDaoWithDefaultRoles | public class InMemoryDaoWithDefaultRoles implements UserDetailsService(Code) | | Retrieves user details from an in-memory list created by the bean context. If
no user information is found, a new UserDetails object is created containing
defaultAuthorities. The user is registered in JAMWiki db if no account
exists.
This class is useful with authentication services not providing user
information like CAS. Each user authenticated by CAS is assigned the
specified in defaultAuthorities. In addition special user mappings can be
provided in a userMap, e.g. to grant certain users the administrator role.
author: Rainer Schmitz since: 05.12.2006 See Also: org.acegisecurity.userdetails.memory.InMemoryDaoImpl |
getUserMap | public UserMap getUserMap()(Code) | | |
loadUserByUsername | public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException(Code) | | |
setDefaultAuthorities | public void setDefaultAuthorities(GrantedAuthority[] defaultAuthorities)(Code) | | Default authorities provided to all users not mentioned in userMap.
Parameters: defaultAuthorities - To set. |
setUserMap | public void setUserMap(UserMap userMap)(Code) | | |
setUserProperties | public void setUserProperties(Properties props)(Code) | | Modifies the internal UserMap to reflect the
Properties instance passed. This helps externalise user
information to another file etc.
Parameters: props - The account information in a Properties objectformat. |
|
|
|