org.ow2.jonas.security.realm.principal
Interface JUser

All Known Implementing Classes:
LDAPUser, User

public interface JUser

This interface represents a user in a security realm.

Author:
Guillaume Sauthier

Method Summary
 void addGroup(String group)
          Add the specified group to this user
 void addRole(String role)
          Add a role to this user
 String[] getArrayGroups()
          Get the groups
 String[] getArrayRoles()
          Get the roles
 ArrayList getCombinedRoles()
          Get the combined roles of this user
 String getGroups()
          Get the groups
 HashPassword getHashPassword()
          Set the hashed password of this user
 String getName()
          Get the name of this user
 String getPassword()
          Get the password of this user
 String getRoles()
          Get the roles
 void removeGroup(String group)
          Remove a group from this user
 void removeRole(String role)
          Remove a role from this user
 void setCombinedRoles(ArrayList combinedRoles)
          Set the combined roles of this user
 void setGroups(String groups)
          Set the groups of the user
 void setName(String name)
          Set the name of this user
 void setPassword(String password)
          Set the password of this user
 void setRoles(String roles)
          Set the roles of the user
 String toXML()
          String representation of the user
 

Method Detail

setName

void setName(String name)
Set the name of this user

Parameters:
name - Name of the user

getName

String getName()
Get the name of this user

Returns:
the name of this user

getPassword

String getPassword()
Get the password of this user

Returns:
the password of this user

setPassword

void setPassword(String password)
Set the password of this user

Parameters:
password - password of the user

getHashPassword

HashPassword getHashPassword()
Set the hashed password of this user

Returns:
hashPassword hashed password of this user

setGroups

void setGroups(String groups)
Set the groups of the user

Parameters:
groups - the comma separated list of the groups of the user

getGroups

String getGroups()
Get the groups

Returns:
the comma separated list of groups

getArrayGroups

String[] getArrayGroups()
Get the groups

Returns:
the array of the groups

setRoles

void setRoles(String roles)
Set the roles of the user

Parameters:
roles - the comma separated list of the roles of the user

addGroup

void addGroup(String group)
Add the specified group to this user

Parameters:
group - the group to add

addRole

void addRole(String role)
Add a role to this user

Parameters:
role - the given role

removeGroup

void removeGroup(String group)
Remove a group from this user

Parameters:
group - the given group

removeRole

void removeRole(String role)
Remove a role from this user

Parameters:
role - the given role

getRoles

String getRoles()
Get the roles

Returns:
the array of the roles

setCombinedRoles

void setCombinedRoles(ArrayList combinedRoles)
Set the combined roles of this user

Parameters:
combinedRoles - combined of the user

getCombinedRoles

ArrayList getCombinedRoles()
Get the combined roles of this user

Returns:
the combined of the user

getArrayRoles

String[] getArrayRoles()
Get the roles

Returns:
the array of the roles

toXML

String toXML()
String representation of the user

Returns:
the xml representation of the user


Copyright © 2010 OW2 Consortium. All Rights Reserved.