@groovy.transform.CompileStatic class GrailsUser extends User
Extends the default Spring Security user class to contain the ID for efficient lookup of the domain class from the Authentication.
| Type | Name and description |
|---|---|
java.lang.Object |
id |
| Constructor and description |
|---|
GrailsUser(java.lang.String username, java.lang.String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, java.util.Collection<GrantedAuthority> authorities, java.lang.Object id)Constructor. |
Constructor.
username - the username presented to the
DaoAuthenticationProviderpassword - the password that should be presented to the
DaoAuthenticationProviderenabled - set to true if the user is enabledaccountNonExpired - set to true if the account has not expiredcredentialsNonExpired - set to true if the credentials have not expiredaccountNonLocked - set to true if the account is not lockedauthorities - the authorities that should be granted to the caller if they
presented the correct username and password and the user is enabled. Not null.id - the id of the domain class instance used to populate this