org.codehaus.groovy.grails.plugins.springsecurity.ldap
Class GrailsLdapUser
java.lang.Object
org.springframework.security.userdetails.User
org.codehaus.groovy.grails.plugins.springsecurity.GrailsUserImpl
org.codehaus.groovy.grails.plugins.springsecurity.ldap.GrailsLdapUser
- All Implemented Interfaces:
- Serializable, GrailsUser, org.springframework.security.userdetails.ldap.LdapUserDetails, org.springframework.security.userdetails.UserDetails
public class GrailsLdapUser
- extends GrailsUserImpl
- implements GrailsUser, org.springframework.security.userdetails.ldap.LdapUserDetails
A GrailsUser
for use in LDAP authentication.
- Author:
- Burt Beckwith
- See Also:
- Serialized Form
Constructor Summary |
GrailsLdapUser(org.springframework.security.userdetails.ldap.LdapUserDetails details,
Object domainClass)
Constructor from LdapUserDetails . |
GrailsLdapUser(String username,
String password,
boolean enabled,
boolean accountNonExpired,
boolean credentialsNonExpired,
boolean accountNonLocked,
org.springframework.security.GrantedAuthority[] authorities,
Attributes attributes,
String dn,
Object domainClass)
Full constructor. |
Methods inherited from class org.springframework.security.userdetails.User |
equals, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, setAuthorities, toString |
Methods inherited from interface org.springframework.security.userdetails.UserDetails |
getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled |
GrailsLdapUser
public GrailsLdapUser(org.springframework.security.userdetails.ldap.LdapUserDetails details,
Object domainClass)
- Constructor from
LdapUserDetails
.
- Parameters:
details
- the original detailsdomainClass
- the domain instance
GrailsLdapUser
public GrailsLdapUser(String username,
String password,
boolean enabled,
boolean accountNonExpired,
boolean credentialsNonExpired,
boolean accountNonLocked,
org.springframework.security.GrantedAuthority[] authorities,
Attributes attributes,
String dn,
Object domainClass)
- Full constructor.
- Parameters:
username
- the usernamepassword
- the passwordenabled
- whether the user is enabledaccountNonExpired
- whether the user's account is expiredcredentialsNonExpired
- whether the user's credentials are lockedaccountNonLocked
- whether the user's account is lockedauthorities
- authoritiesattributes
- attributesdn
- distinguished namedomainClass
- the domain instance
getAttributes
public Attributes getAttributes()
-
- Specified by:
getAttributes
in interface org.springframework.security.userdetails.ldap.LdapUserDetails
getDn
public String getDn()
-
- Specified by:
getDn
in interface org.springframework.security.userdetails.ldap.LdapUserDetails
- See Also:
LdapUserDetails.getDn()