public class SecurityContext
extends java.lang.Object
| Constructor and Description | 
|---|
SecurityContext(long groupID)
Creates a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SecurityContext | 
copy()
Returns a copy of the security context. 
 | 
boolean | 
equals(java.lang.Object obj)
Overridden to control if the passed object equals the current one. 
 | 
float | 
getCompression()
Get the compression level (A percentage compression level from 1.00
 (100%) to 0.01 (1%) (the default is 85%)) 
 | 
long | 
getExperimenter()
Returns the id of the experimenter. 
 | 
ExperimenterData | 
getExperimenterData()
Returns the experimenter. 
 | 
long | 
getGroupID()
Returns the identifier of the group. 
 | 
ServerInformation | 
getServerInformation()  | 
int | 
hashCode()
Calculate the hashCode for the data. 
 | 
boolean | 
isSudo()
Returns  
true if a session has to be created for another
 user, false otherwise. | 
void | 
setCompression(float compression)
Set the compression level 
 | 
void | 
setExperimenter(ExperimenterData experimenter)
Sets the experimenter 
 | 
void | 
setServerInformation(ServerInformation serverInformation)
Sets the  
ServerInformation | 
void | 
sudo()
Indicates to create a session for another user. 
 | 
java.lang.String | 
toString()  | 
public SecurityContext(long groupID)
groupID - The identifier of the group.public void sudo()
public boolean isSudo()
true if a session has to be created for another
 user, false otherwise.public void setExperimenter(ExperimenterData experimenter)
experimenter - The experimenter.public long getExperimenter()
public ExperimenterData getExperimenterData()
public long getGroupID()
public ServerInformation getServerInformation()
ServerInformationpublic void setServerInformation(ServerInformation serverInformation)
ServerInformationserverInformation - The ServerInformationpublic float getCompression()
public void setCompression(float compression)
compression - A percentage compression level from 1.00 (100%) to 0.01 (1%)
            (the default is 85%)public SecurityContext copy()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(Object)public java.lang.String toString()
toString in class java.lang.Object