Created
June 10, 2015 04:28
-
-
Save kurtisdunn/1100672a93efafd2c0e7 to your computer and use it in GitHub Desktop.
LdapUser - Grails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package somePackage | |
import org.springframework.security.core.GrantedAuthority | |
import org.springframework.security.core.userdetails.User | |
class LdapUser extends User{ | |
final String id | |
final String firstName | |
final String lastName | |
final String emailAddress | |
final String description | |
LdapUser(String username, String password, | |
boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, | |
boolean accountNonLocked, Collection<GrantedAuthority> authorities, String id, String firstName, String lastName, String emailAddress) { | |
super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities) | |
this.id = id | |
this.firstName = firstName | |
this.lastName = lastName | |
this.emailAddress = emailAddress | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment