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 Summary
Nested Classes Modifier and Type Class Description static class
JCCSecurityPluginAgent.SecurityState
Security state infos.
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.protected java.lang.String
component
The plugin component string.
-
Constructor Summary
Constructors Constructor Description JCCSecurityPluginAgent()
-
Method Summary
All 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.String
getPluginUIPath()
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.JCCPluginAgent
getAgent, getPluginComponent, internalLoadResource, loadResource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jadex.tools.web.jcc.IJCCPluginService
getPluginComponent, loadResource
-
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The agent.
-
component
protected java.lang.String component
The plugin component string.
-
-
Method Detail
-
getPluginName
public IFuture<java.lang.String> getPluginName()
Get the plugin name.- Specified by:
getPluginName
in interfaceIJCCPluginService
- Specified by:
getPluginName
in classJCCPluginAgent
- Returns:
- The plugin name.
-
getPriority
public IFuture<java.lang.Integer> getPriority()
Get the plugin priority.- Specified by:
getPriority
in interfaceIJCCPluginService
- Specified by:
getPriority
in classJCCPluginAgent
- Returns:
- The plugin priority.
-
getPluginUIPath
public java.lang.String getPluginUIPath()
Get the plugin UI path.- Specified by:
getPluginUIPath
in classJCCPluginAgent
- Returns:
- The plugin ui path.
-
getSecurityService
protected IFuture<ISecurityService> getSecurityService(IComponentIdentifier cid)
Get the security service of the own platform or of cid platform.- Parameters:
cid
- The platform id.- Returns:
-
setUseSecret
public IFuture<java.lang.Void> setUseSecret(boolean usesecret, IComponentIdentifier cid)
Set if the platform secret shall be used.- Specified by:
setUseSecret
in interfaceIJCCSecurityService
- Parameters:
usesecret
- The flag.
-
setPrintSecret
public IFuture<java.lang.Void> setPrintSecret(boolean printsecret, IComponentIdentifier cid)
Set if the platform secret shall be printed.- Specified by:
setPrintSecret
in interfaceIJCCSecurityService
- Parameters:
printsecret
- The flag.
-
addRole
public 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:
addRole
in interfaceIJCCSecurityService
- Parameters:
entity
- The entity name.role
- The role name.- Returns:
- Null, when done.
-
removeRole
public 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:
removeRole
in interfaceIJCCSecurityService
- Parameters:
entity
- The entity name.role
- The role name.- Returns:
- Null, when done.
-
addNetwork
public IFuture<java.lang.Void> addNetwork(java.lang.String networkname, java.lang.String secret, IComponentIdentifier cid)
Adds a new network.- Specified by:
addNetwork
in interfaceIJCCSecurityService
- Parameters:
networkname
- The network name.secret
- The secret, null to remove.- Returns:
- Null, when done.
-
removeNetwork
public IFuture<java.lang.Void> removeNetwork(java.lang.String networkname, java.lang.String secret, IComponentIdentifier cid)
Remove a network.- Specified by:
removeNetwork
in interfaceIJCCSecurityService
- Parameters:
networkname
- The network name.secret
- The secret, null to remove the network completely.- Returns:
- Null, when done.
-
addTrustedPlatformName
public IFuture<java.lang.Void> addTrustedPlatformName(java.lang.String name, IComponentIdentifier cid)
Adds a trusted platform name.- Specified by:
addTrustedPlatformName
in interfaceIJCCSecurityService
- Parameters:
name
- The name.- Returns:
- null, when done.
-
removeTrustedPlatformName
public IFuture<java.lang.Void> removeTrustedPlatformName(java.lang.String name, IComponentIdentifier cid)
Removes a trusted platform name.- Specified by:
removeTrustedPlatformName
in interfaceIJCCSecurityService
- Parameters:
name
- The name.- Returns:
- null, when done.
-
getSecurityState
public IFuture<JCCSecurityPluginAgent.SecurityState> getSecurityState(IComponentIdentifier cid)
Get security state.- Specified by:
getSecurityState
in interfaceIJCCSecurityService
- Returns:
- The security state.
-
-