Package jadex.tools.web.security
Class JCCSecurityPluginAgent
- java.lang.Object
- 
- jadex.tools.web.jcc.JCCPluginAgent
- 
- jadex.tools.web.security.JCCSecurityPluginAgent
 
 
- 
- All Implemented Interfaces:
- IJCCPluginService,- IJCCSecurityService
 
 public class JCCSecurityPluginAgent extends JCCPluginAgent implements IJCCSecurityService Security web jcc plugin.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classJCCSecurityPluginAgent.SecurityStateSecurity state infos.
 - 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected java.lang.StringcomponentThe plugin component string.
 - 
Constructor SummaryConstructors Constructor Description JCCSecurityPluginAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>addNetwork(java.lang.String networkname, java.lang.String secret, IComponentIdentifier cid)Adds a new network.IFuture<java.lang.Void>addRole(java.lang.String entity, java.lang.String role, IComponentIdentifier cid)Adds a role for an entity (platform or network name).IFuture<java.lang.Void>addTrustedPlatformName(java.lang.String name, IComponentIdentifier cid)Adds a trusted platform name.IFuture<java.lang.String>getPluginName()Get the plugin name.java.lang.StringgetPluginUIPath()Get the plugin UI path.IFuture<java.lang.Integer>getPriority()Get the plugin priority.protected IFuture<ISecurityService>getSecurityService(IComponentIdentifier cid)Get the security service of the own platform or of cid platform.IFuture<JCCSecurityPluginAgent.SecurityState>getSecurityState(IComponentIdentifier cid)Get security state.IFuture<java.lang.Void>removeNetwork(java.lang.String networkname, java.lang.String secret, IComponentIdentifier cid)Remove a network.IFuture<java.lang.Void>removeRole(java.lang.String entity, java.lang.String role, IComponentIdentifier cid)Adds a role of an entity (platform or network name).IFuture<java.lang.Void>removeTrustedPlatformName(java.lang.String name, IComponentIdentifier cid)Removes a trusted platform name.IFuture<java.lang.Void>setPrintSecret(boolean printsecret, IComponentIdentifier cid)Set if the platform secret shall be printed.IFuture<java.lang.Void>setUseSecret(boolean usesecret, IComponentIdentifier cid)Set if the platform secret shall be used.- 
Methods inherited from class jadex.tools.web.jcc.JCCPluginAgentgetAgent, getPluginComponent, internalLoadResource, loadResource
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jadex.tools.web.jcc.IJCCPluginServicegetPluginComponent, loadResource
 
- 
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
componentprotected java.lang.String component The plugin component string.
 
- 
 - 
Method Detail- 
getPluginNamepublic IFuture<java.lang.String> getPluginName() Get the plugin name.- Specified by:
- getPluginNamein interface- IJCCPluginService
- Specified by:
- getPluginNamein class- JCCPluginAgent
- Returns:
- The plugin name.
 
 - 
getPrioritypublic IFuture<java.lang.Integer> getPriority() Get the plugin priority.- Specified by:
- getPriorityin interface- IJCCPluginService
- Specified by:
- getPriorityin class- JCCPluginAgent
- Returns:
- The plugin priority.
 
 - 
getPluginUIPathpublic java.lang.String getPluginUIPath() Get the plugin UI path.- Specified by:
- getPluginUIPathin class- JCCPluginAgent
- Returns:
- The plugin ui path.
 
 - 
getSecurityServiceprotected IFuture<ISecurityService> getSecurityService(IComponentIdentifier cid) Get the security service of the own platform or of cid platform.- Parameters:
- cid- The platform id.
- Returns:
 
 - 
setUseSecretpublic IFuture<java.lang.Void> setUseSecret(boolean usesecret, IComponentIdentifier cid) Set if the platform secret shall be used.- Specified by:
- setUseSecretin interface- IJCCSecurityService
- Parameters:
- usesecret- The flag.
 
 - 
setPrintSecretpublic IFuture<java.lang.Void> setPrintSecret(boolean printsecret, IComponentIdentifier cid) Set if the platform secret shall be printed.- Specified by:
- setPrintSecretin interface- IJCCSecurityService
- Parameters:
- printsecret- The flag.
 
 - 
addRolepublic IFuture<java.lang.Void> addRole(java.lang.String entity, java.lang.String role, IComponentIdentifier cid) Adds a role for an entity (platform or network name).- Specified by:
- addRolein interface- IJCCSecurityService
- Parameters:
- entity- The entity name.
- role- The role name.
- Returns:
- Null, when done.
 
 - 
removeRolepublic IFuture<java.lang.Void> removeRole(java.lang.String entity, java.lang.String role, IComponentIdentifier cid) Adds a role of an entity (platform or network name).- Specified by:
- removeRolein interface- IJCCSecurityService
- Parameters:
- entity- The entity name.
- role- The role name.
- Returns:
- Null, when done.
 
 - 
addNetworkpublic IFuture<java.lang.Void> addNetwork(java.lang.String networkname, java.lang.String secret, IComponentIdentifier cid) Adds a new network.- Specified by:
- addNetworkin interface- IJCCSecurityService
- Parameters:
- networkname- The network name.
- secret- The secret, null to remove.
- Returns:
- Null, when done.
 
 - 
removeNetworkpublic IFuture<java.lang.Void> removeNetwork(java.lang.String networkname, java.lang.String secret, IComponentIdentifier cid) Remove a network.- Specified by:
- removeNetworkin interface- IJCCSecurityService
- Parameters:
- networkname- The network name.
- secret- The secret, null to remove the network completely.
- Returns:
- Null, when done.
 
 - 
addTrustedPlatformNamepublic IFuture<java.lang.Void> addTrustedPlatformName(java.lang.String name, IComponentIdentifier cid) Adds a trusted platform name.- Specified by:
- addTrustedPlatformNamein interface- IJCCSecurityService
- Parameters:
- name- The name.
- Returns:
- null, when done.
 
 - 
removeTrustedPlatformNamepublic IFuture<java.lang.Void> removeTrustedPlatformName(java.lang.String name, IComponentIdentifier cid) Removes a trusted platform name.- Specified by:
- removeTrustedPlatformNamein interface- IJCCSecurityService
- Parameters:
- name- The name.
- Returns:
- null, when done.
 
 - 
getSecurityStatepublic IFuture<JCCSecurityPluginAgent.SecurityState> getSecurityState(IComponentIdentifier cid) Get security state.- Specified by:
- getSecurityStatein interface- IJCCSecurityService
- Returns:
- The security state.
 
 
- 
 
-