com.uwyn.rife.authentication.credentialsmanagers
Class RoleUserAttributes

java.lang.Object
  extended by com.uwyn.rife.authentication.credentialsmanagers.RoleUserAttributes
All Implemented Interfaces:
Cloneable

public class RoleUserAttributes
extends Object
implements Cloneable


Constructor Summary
RoleUserAttributes()
           
RoleUserAttributes(Collection<String> roles)
           
RoleUserAttributes(long userId)
           
RoleUserAttributes(long userId, Collection<String> roles)
           
RoleUserAttributes(long userId, String password)
           
RoleUserAttributes(long userId, String[] roles)
           
RoleUserAttributes(long userId, String password, Collection<String> roles)
           
RoleUserAttributes(long userId, String password, String[] roles)
           
RoleUserAttributes(String password)
           
RoleUserAttributes(String[] roles)
           
RoleUserAttributes(String password, Collection<String> roles)
           
RoleUserAttributes(String password, String[] roles)
           
 
Method Summary
 void addRole(String role)
           
 RoleUserAttributes clone()
           
 boolean equals(Object other)
           
 String getPassword()
           
 Collection<String> getRoles()
           
 long getUserId()
           
 boolean isInRole(String role)
           
 boolean isValid(String password)
           
 boolean isValid(String password, String role)
           
 void removeRole(String role)
           
 void setPassword(String password)
           
 void setRoles(Collection<String> roles)
           
 void setRoles(String[] roles)
           
 void setUserId(long userId)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleUserAttributes

public RoleUserAttributes()

RoleUserAttributes

public RoleUserAttributes(long userId,
                          String password)

RoleUserAttributes

public RoleUserAttributes(long userId,
                          String password,
                          String[] roles)

RoleUserAttributes

public RoleUserAttributes(long userId,
                          String password,
                          Collection<String> roles)

RoleUserAttributes

public RoleUserAttributes(String password)

RoleUserAttributes

public RoleUserAttributes(String password,
                          String[] roles)

RoleUserAttributes

public RoleUserAttributes(String password,
                          Collection<String> roles)

RoleUserAttributes

public RoleUserAttributes(long userId)

RoleUserAttributes

public RoleUserAttributes(long userId,
                          String[] roles)

RoleUserAttributes

public RoleUserAttributes(long userId,
                          Collection<String> roles)

RoleUserAttributes

public RoleUserAttributes(String[] roles)

RoleUserAttributes

public RoleUserAttributes(Collection<String> roles)
Method Detail

setUserId

public void setUserId(long userId)

getUserId

public long getUserId()

setPassword

public void setPassword(String password)

getPassword

public String getPassword()

setRoles

public void setRoles(Collection<String> roles)

setRoles

public void setRoles(String[] roles)

addRole

public void addRole(String role)

removeRole

public void removeRole(String role)

getRoles

public Collection<String> getRoles()

isInRole

public boolean isInRole(String role)

isValid

public boolean isValid(String password)

isValid

public boolean isValid(String password,
                       String role)

clone

public RoleUserAttributes clone()
Overrides:
clone in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.