@Deprecated public class GenericPrincipal extends Object implements Principal, Serializable
Principal
that is available for use by ISpaceUserAccountDriver
implementations.Modifier and Type | Class and Description |
---|---|
static class |
GenericPrincipal.Attribute
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
Map<String,DefaultSecurityFilter.MatchObject> |
executeMatchObjects
Deprecated.
|
Map<String,List<GenericPrincipal.Attribute>> |
executeTasks
Deprecated.
|
Map<String,List<GenericPrincipal.Attribute>> |
readEntries
Deprecated.
|
Map<String,DefaultSecurityFilter.MatchObject> |
readMatchObjects
Deprecated.
|
ArrayList<String> |
userDefinedRoles
Deprecated.
List contains only user-defined roles.
|
Map<String,List<GenericPrincipal.Attribute>> |
writeEntries
Deprecated.
|
Map<String,DefaultSecurityFilter.MatchObject> |
writeMatchObjects
Deprecated.
|
Constructor and Description |
---|
GenericPrincipal(String userName,
String password)
Deprecated.
Construct a new Principal for the specified username and password.
|
GenericPrincipal(String userName,
String password,
List<String> roles)
Deprecated.
|
GenericPrincipal(String userName,
String password,
List<String> roles,
Map<String,List<GenericPrincipal.Attribute>> writeEntries,
Map<String,List<GenericPrincipal.Attribute>> readEntries,
Map<String,List<GenericPrincipal.Attribute>> executeTasks)
Deprecated.
Construct a new Principal for the specified username and password, with the specified role
names (as Strings).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object another)
Deprecated.
Indicates whether some other object is "equal to" this one.
|
String |
getName()
Deprecated.
|
String |
getPassword()
Deprecated.
Returns the password of the user represented by this Principal.
|
String[] |
getRoles()
Deprecated.
Returns set of roles associated with this user.
|
String |
getUserName()
Deprecated.
Returns the username of the user represented by this Principal.
|
boolean |
isHidden()
Deprecated.
Return
true if user defined as hidden to security management on client side
(e.g. |
void |
setPassword(String newPassword)
Deprecated.
Sets a new password (overriding the one given during construction.
|
void |
setRoles(String[] roles)
Deprecated.
|
String |
toString()
Deprecated.
|
public ArrayList<String> userDefinedRoles
public Map<String,List<GenericPrincipal.Attribute>> writeEntries
public Map<String,List<GenericPrincipal.Attribute>> readEntries
public Map<String,List<GenericPrincipal.Attribute>> executeTasks
public Map<String,DefaultSecurityFilter.MatchObject> writeMatchObjects
public Map<String,DefaultSecurityFilter.MatchObject> readMatchObjects
public Map<String,DefaultSecurityFilter.MatchObject> executeMatchObjects
public GenericPrincipal(String userName, String password, List<String> roles, Map<String,List<GenericPrincipal.Attribute>> writeEntries, Map<String,List<GenericPrincipal.Attribute>> readEntries, Map<String,List<GenericPrincipal.Attribute>> 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 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()
public boolean equals(Object another)
public boolean isHidden()
true
if user defined as hidden to security management on client side
(e.g. SpaceBrowser application), otherwise false
.Copyright © GigaSpaces.