Spring Security Framework

org.springframework.security.userdetails.memory
Class UserAttribute

java.lang.Object
  extended by org.springframework.security.userdetails.memory.UserAttribute

public class UserAttribute
extends Object

Used by InMemoryDaoImpl to temporarily store the attributes associated with a user.

Version:
$Id$
Author:
Ben Alex

Constructor Summary
UserAttribute()
           
 
Method Summary
 void addAuthority(GrantedAuthority newAuthority)
           
 GrantedAuthority[] getAuthorities()
           
 String getPassword()
           
 boolean isEnabled()
           
 boolean isValid()
           
 void setAuthorities(List authorities)
          Set all authorities for this user.
 void setAuthoritiesAsString(List authoritiesAsString)
          Set all authorities for this user from String values.
 void setEnabled(boolean enabled)
           
 void setPassword(String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAttribute

public UserAttribute()
Method Detail

addAuthority

public void addAuthority(GrantedAuthority newAuthority)

getAuthorities

public GrantedAuthority[] getAuthorities()

setAuthorities

public void setAuthorities(List authorities)
Set all authorities for this user.

Parameters:
authorities - List <GrantedAuthority>
Since:
1.1

setAuthoritiesAsString

public void setAuthoritiesAsString(List authoritiesAsString)
Set all authorities for this user from String values. It will create the necessary GrantedAuthority objects.

Parameters:
authoritiesAsString - List <String>
Since:
1.1

getPassword

public String getPassword()

isEnabled

public boolean isEnabled()

isValid

public boolean isValid()

setEnabled

public void setEnabled(boolean enabled)

setPassword

public void setPassword(String password)

Spring Security Framework

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