Class LdapUserDetailsImpl.Essence
- java.lang.Object
-
- org.springframework.security.ldap.userdetails.LdapUserDetailsImpl.Essence
-
- Direct Known Subclasses:
Person.Essence
- Enclosing class:
- LdapUserDetailsImpl
public static class LdapUserDetailsImpl.Essence extends java.lang.Object
Variation of essence pattern. Used to create mutable intermediate object
-
-
Field Summary
Fields Modifier and Type Field Description protected LdapUserDetailsImpl
instance
-
Constructor Summary
Constructors Constructor Description Essence()
Essence(org.springframework.ldap.core.DirContextOperations ctx)
Essence(LdapUserDetails copyMe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuthority(GrantedAuthority a)
Adds the authority to the list, unless it is already there, in which case it is ignoredprotected LdapUserDetailsImpl
createTarget()
LdapUserDetails
createUserDetails()
java.util.Collection<GrantedAuthority>
getGrantedAuthorities()
void
setAccountNonExpired(boolean accountNonExpired)
void
setAccountNonLocked(boolean accountNonLocked)
void
setAuthorities(java.util.Collection<? extends GrantedAuthority> authorities)
void
setCredentialsNonExpired(boolean credentialsNonExpired)
void
setDn(java.lang.String dn)
void
setDn(javax.naming.Name dn)
void
setEnabled(boolean enabled)
void
setGraceLoginsRemaining(int graceLoginsRemaining)
void
setPassword(java.lang.String password)
void
setTimeBeforeExpiration(int timeBeforeExpiration)
void
setUsername(java.lang.String username)
-
-
-
Field Detail
-
instance
protected LdapUserDetailsImpl instance
-
-
Constructor Detail
-
Essence
public Essence()
-
Essence
public Essence(org.springframework.ldap.core.DirContextOperations ctx)
-
Essence
public Essence(LdapUserDetails copyMe)
-
-
Method Detail
-
createTarget
protected LdapUserDetailsImpl createTarget()
-
addAuthority
public void addAuthority(GrantedAuthority a)
Adds the authority to the list, unless it is already there, in which case it is ignored
-
createUserDetails
public LdapUserDetails createUserDetails()
-
getGrantedAuthorities
public java.util.Collection<GrantedAuthority> getGrantedAuthorities()
-
setAccountNonExpired
public void setAccountNonExpired(boolean accountNonExpired)
-
setAccountNonLocked
public void setAccountNonLocked(boolean accountNonLocked)
-
setAuthorities
public void setAuthorities(java.util.Collection<? extends GrantedAuthority> authorities)
-
setCredentialsNonExpired
public void setCredentialsNonExpired(boolean credentialsNonExpired)
-
setDn
public void setDn(java.lang.String dn)
-
setDn
public void setDn(javax.naming.Name dn)
-
setEnabled
public void setEnabled(boolean enabled)
-
setPassword
public void setPassword(java.lang.String password)
-
setUsername
public void setUsername(java.lang.String username)
-
setTimeBeforeExpiration
public void setTimeBeforeExpiration(int timeBeforeExpiration)
-
setGraceLoginsRemaining
public void setGraceLoginsRemaining(int graceLoginsRemaining)
-
-