| java.lang.Object org.acegisecurity.userdetails.User
User | public class User implements UserDetails(Code) | | Models core user information retieved by an
UserDetailsService . Implemented with value object
semantics (immutable after construction, like a String ). Developers may use this class directly,
subclass it, or write their own
UserDetails implementation from scratch.
author: Ben Alex version: $Id: User.java 1784 2007-02-24 21:00:24Z luke_t $ |
Constructor Summary | |
public | User(String username, String password, boolean enabled, GrantedAuthority[] authorities) Construct the User with the details required by
org.acegisecurity.providers.dao.DaoAuthenticationProvider . | public | User(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, GrantedAuthority[] authorities) Construct the User with the details required by
org.acegisecurity.providers.dao.DaoAuthenticationProvider . | public | User(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, GrantedAuthority[] authorities) Construct the User with the details required by
org.acegisecurity.providers.dao.DaoAuthenticationProvider . |
User | public User(String username, String password, boolean enabled, GrantedAuthority[] authorities) throws IllegalArgumentException(Code) | | Construct the User with the details required by
org.acegisecurity.providers.dao.DaoAuthenticationProvider .
Parameters: username - the username presented to theDaoAuthenticationProvider Parameters: password - the password that should be presented to theDaoAuthenticationProvider Parameters: enabled - set to true if the user is enabled Parameters: authorities - the authorities that should be granted to the callerif they presented the correct username and password and the useris enabled throws: IllegalArgumentException - if a null value was passedeither as a parameter or as an element in theGrantedAuthority[] array |
User | public User(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, GrantedAuthority[] authorities) throws IllegalArgumentException(Code) | | Construct the User with the details required by
org.acegisecurity.providers.dao.DaoAuthenticationProvider .
Parameters: username - the username presented to theDaoAuthenticationProvider Parameters: password - the password that should be presented to theDaoAuthenticationProvider Parameters: enabled - set to true if the user is enabled Parameters: accountNonExpired - set to true if the account has notexpired Parameters: credentialsNonExpired - set to true if the credentialshave not expired Parameters: authorities - the authorities that should be granted to the callerif they presented the correct username and password and the useris enabled throws: IllegalArgumentException - if a null value was passedeither as a parameter or as an element in theGrantedAuthority[] array |
User | public User(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, GrantedAuthority[] authorities) throws IllegalArgumentException(Code) | | Construct the User with the details required by
org.acegisecurity.providers.dao.DaoAuthenticationProvider .
Parameters: username - the username presented to theDaoAuthenticationProvider Parameters: password - the password that should be presented to theDaoAuthenticationProvider Parameters: enabled - set to true if the user is enabled Parameters: accountNonExpired - set to true if the account has notexpired Parameters: credentialsNonExpired - set to true if the credentialshave not expired Parameters: accountNonLocked - set to true if the account is notlocked Parameters: authorities - the authorities that should be granted to the callerif they presented the correct username and password and the useris enabled throws: IllegalArgumentException - if a null value was passedeither as a parameter or as an element in theGrantedAuthority[] array |
hashCode | public int hashCode()(Code) | | |
isAccountNonExpired | public boolean isAccountNonExpired()(Code) | | |
isAccountNonLocked | public boolean isAccountNonLocked()(Code) | | |
isCredentialsNonExpired | public boolean isCredentialsNonExpired()(Code) | | |
isEnabled | public boolean isEnabled()(Code) | | |
|
|