|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.j_spaces.core.filters.GenericPrincipal
public class GenericPrincipal
GenericPrincipal implementation of Principal
that
is available for use by ISpaceUserAccountDriver
implementations.
Nested Class Summary | |
---|---|
static class |
GenericPrincipal.Attribute
|
Field Summary | |
---|---|
Map |
executeMatchObjects
|
Map<String,List> |
executeTasks
|
Map<String,List> |
readEntries
|
Map |
readMatchObjects
|
ArrayList<String> |
userDefinedRoles
List contains only user-defined roles. |
Map<String,List> |
writeEntries
|
Map |
writeMatchObjects
|
Constructor Summary | |
---|---|
GenericPrincipal(String userName,
String password)
Construct a new Principal for the specified username and password. |
|
GenericPrincipal(String userName,
String password,
List<String> roles)
|
|
GenericPrincipal(String userName,
String password,
List<String> roles,
Map<String,List> writeEntries,
Map<String,List> readEntries,
Map<String,List> executeTasks)
Construct a new Principal for the specified username and password, with the specified role names (as Strings). |
Method Summary | |
---|---|
boolean |
equals(Object another)
Indicates whether some other object is "equal to" this one. |
String |
getName()
|
String |
getPassword()
Returns the password of the user represented by this Principal. |
String[] |
getRoles()
Returns set of roles associated with this user. |
String |
getUserName()
Returns the username of the user represented by this Principal. |
boolean |
isHidden()
Return true if user defined as hidden to security management
on client side (e.g. |
void |
setPassword(String newPassword)
Sets a new password (overriding the one given during construction. |
void |
setRoles(String[] roles)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
hashCode |
Field Detail |
---|
public ArrayList<String> userDefinedRoles
public Map<String,List> writeEntries
public Map<String,List> readEntries
public Map<String,List> executeTasks
public Map writeMatchObjects
public Map readMatchObjects
public Map executeMatchObjects
Constructor Detail |
---|
public GenericPrincipal(String userName, String password, List<String> roles, Map<String,List> writeEntries, Map<String,List> readEntries, Map<String,List> executeTasks)
userName
- The username of the user represented by this Principalpassword
- Credentials used to authenticate this userroles
- List of roles (must be Strings) possessed by this userwriteEntries
- List of permitted entries for write operationreadEntries
- List of permitted entries for read operationexecuteTasks
- List of permitted tasks for execute operationpublic GenericPrincipal(String userName, String password)
userName
- The username of the user represented by this Principalpassword
- The encrypted value used to authenticate user.
The encryption algorithm is DES/ECB/PKCS5Padding.public GenericPrincipal(String userName, String password, List<String> roles)
Method Detail |
---|
public String getName()
getName
in interface Principal
public String getUserName()
public String getPassword()
public void setPassword(String newPassword)
newPassword
- a new password of the user represented by this Principal.public String[] getRoles()
public void setRoles(String[] roles)
public String toString()
toString
in interface Principal
toString
in class Object
public boolean equals(Object another)
equals
in interface Principal
equals
in class Object
public boolean isHidden()
true
if user defined as hidden to security management
on client side (e.g. SpaceBrowser application), otherwise false
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |