Spring Security Framework

org.springframework.security.userdetails.ldap
Class LdapUserDetailsImpl.Essence

java.lang.Object
  extended by org.springframework.security.userdetails.ldap.LdapUserDetailsImpl.Essence
Direct Known Subclasses:
Person.Essence
Enclosing class:
LdapUserDetailsImpl

public static class LdapUserDetailsImpl.Essence
extends Object

Variation of essence pattern. Used to create mutable intermediate object


Field Summary
protected  LdapUserDetailsImpl instance
           
 
Constructor Summary
LdapUserDetailsImpl.Essence()
           
LdapUserDetailsImpl.Essence(org.springframework.ldap.core.DirContextOperations ctx)
           
LdapUserDetailsImpl.Essence(LdapUserDetails copyMe)
           
 
Method Summary
 void addAuthority(GrantedAuthority a)
          Adds the authority to the list, unless it is already there, in which case it is ignored
protected  LdapUserDetailsImpl createTarget()
           
 LdapUserDetails createUserDetails()
           
 GrantedAuthority[] getGrantedAuthorities()
           
 void setAccountNonExpired(boolean accountNonExpired)
           
 void setAccountNonLocked(boolean accountNonLocked)
           
 void setAttributes(Attributes attributes)
           
 void setAuthorities(GrantedAuthority[] authorities)
           
 void setCredentialsNonExpired(boolean credentialsNonExpired)
           
 void setDn(Name dn)
           
 void setDn(String dn)
           
 void setEnabled(boolean enabled)
           
 void setPassword(String password)
           
 void setUsername(String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected LdapUserDetailsImpl instance
Constructor Detail

LdapUserDetailsImpl.Essence

public LdapUserDetailsImpl.Essence()

LdapUserDetailsImpl.Essence

public LdapUserDetailsImpl.Essence(org.springframework.ldap.core.DirContextOperations ctx)

LdapUserDetailsImpl.Essence

public LdapUserDetailsImpl.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 GrantedAuthority[] getGrantedAuthorities()

setAccountNonExpired

public void setAccountNonExpired(boolean accountNonExpired)

setAccountNonLocked

public void setAccountNonLocked(boolean accountNonLocked)

setAttributes

public void setAttributes(Attributes attributes)

setAuthorities

public void setAuthorities(GrantedAuthority[] authorities)

setCredentialsNonExpired

public void setCredentialsNonExpired(boolean credentialsNonExpired)

setDn

public void setDn(String dn)

setDn

public void setDn(Name dn)

setEnabled

public void setEnabled(boolean enabled)

setPassword

public void setPassword(String password)

setUsername

public void setUsername(String username)

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.