|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.security.JPPFSecurityContext
public final class JPPFSecurityContext
This interface encapsulates the required information and behaviour to manage how a component (driver, node or client) interacts with the others, in terms of authorizations and clearance.
Organizations - or users or entities - willing to participate in a JPPF grid network must have an implementation of this interface provided with every component they send onto the network. If it is not present, any component of this organization should be denied access.
| Constructor Summary | |
|---|---|
JPPFSecurityContext(String uuid,
String id,
JPPFCredentials credentials)
Create a JPPF signature witht he specified parameters. |
|
| Method Summary | |
|---|---|
boolean |
canAdministrate(JPPFSecurityContext credentials)
Determine whether the owner of these credentials can administrate an other entity on the network. |
boolean |
canExecute(JPPFSecurityContext credentials)
Determine whether the owner of these credentials can execute tasks from another entity on the network. |
boolean |
canReceive(JPPFSecurityContext credentials)
Determine whether the owner of these credentials can receive tasks from another entity on the network. |
boolean |
canSend(JPPFSecurityContext credentials)
Determine whether the owner of these credentials can send tasks to another entity on the network. |
String |
getDomain()
Get the security domain these credentials relate to. |
String |
getIdentifier()
Get the identifier for these credentials' owner. |
JPPFCredentials |
getSignature()
Get the signature for these credentials. |
String |
getUuid()
Get the unique universal identifier of the component that owns these credentials. |
void |
setDomain(String domain)
Set the security domain these credentials relate to. |
String |
toString()
Get a string representation of this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFSecurityContext(String uuid,
String id,
JPPFCredentials credentials)
uuid - uuid for the owner of these credentials.id - identifier for the owner of these credentials.credentials - the signature associated with these credentials.| Method Detail |
|---|
public String getUuid()
public String getIdentifier()
public JPPFCredentials getSignature()
JPPFCredentials instance.public boolean canExecute(JPPFSecurityContext credentials)
credentials - the entity's security credentials.
public boolean canSend(JPPFSecurityContext credentials)
credentials - the entity's security credentials.
public boolean canReceive(JPPFSecurityContext credentials)
credentials - the entity's security credentials.
public boolean canAdministrate(JPPFSecurityContext credentials)
credentials - the entity's security credentials.
public String toString()
toString in class ObjectObject.toString()public String getDomain()
public void setDomain(String domain)
domain - the domain as a string.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||