@Deprecated public class SecurityContext extends Object implements SmartExternalizable
| Modifier and Type | Field and Description | 
|---|---|
| static String | ANONYMOUS_USERDeprecated.  Default user name and password, when default constructor is used. | 
| static char | PERMISSION_ADMINDeprecated.  Admin functions permission. | 
| static char | PERMISSION_EXECUTEDeprecated.  Task executions permission | 
| static char | PERMISSION_READDeprecated.  Read permission. | 
| static char | PERMISSION_WRITEDeprecated.  Write/Take/Update/Replace permission. | 
| Constructor and Description | 
|---|
| SecurityContext()Deprecated.  The default constructor shall create a security context used for  ANONYMOUS_USERuser account. | 
| SecurityContext(String username,
               String password)Deprecated.  Create new security context. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | disableAllOperations()Deprecated.  Disable all operations to user represented by this security context. | 
| Object | getImplementorContext()Deprecated.  Get the implementation specific free context. | 
| String | getPassword()Deprecated.  Gets the password. | 
| String | getPermissions()Deprecated.  Gets the the permission  String. | 
| String | getUsername()Deprecated.  Gets user name. | 
| boolean | isEncrypted()Deprecated.  Check is encrypted. | 
| boolean | isInitialized()Deprecated.  | 
| void | readExternal(ObjectInput in)Deprecated.  | 
| void | setEncrypted(boolean isEncrypted)Deprecated.  Set indicator if encrypted. | 
| void | setImplementorContext(Object implementorContext)Deprecated.  Set implementation specific free context, must implement Serializable. | 
| void | setInitialized(boolean initialized)Deprecated.  | 
| void | setPassword(String pass)Deprecated.  Sets password. | 
| void | setPermissions(String permissions)Deprecated.  Set the permission. | 
| void | setUsername(String username)Deprecated.  Sets user name. | 
| void | writeExternal(ObjectOutput out)Deprecated.  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenabledSmartExternalizableWithReferencepublic static final char PERMISSION_READ
public static final char PERMISSION_WRITE
public static final char PERMISSION_ADMIN
public static final char PERMISSION_EXECUTE
public static final String ANONYMOUS_USER
SecurityContext(), 
Constant Field Valuespublic SecurityContext()
ANONYMOUS_USER
 user account.public void disableAllOperations()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void setUsername(String username)
username - the user namepublic String getUsername()
public void setPassword(String pass)
pass - the passwordpublic String getPassword()
public void setEncrypted(boolean isEncrypted)
isEncrypted - true if encryptedpublic boolean isEncrypted()
true if encryptedpublic void setPermissions(String permissions)
 For example:
 
    SecurityContext context = ...;
    context.setPermissions("" + PERMISSION_WRITE + PERMISSION_READ); // read & write
 permission
 
 permissions - the permission stringpublic String getPermissions()
String.StringsetPermissions(String)public void setImplementorContext(Object implementorContext)
implementorContext - implementation specific free contextpublic Object getImplementorContext()
setImplementorContext(Object)public boolean isInitialized()
public void setInitialized(boolean initialized)
Copyright © GigaSpaces.