Package jadex.tools.security
Class SecuritySettingsPanel
- java.lang.Object
-
- jadex.tools.security.SecuritySettingsPanel
-
- All Implemented Interfaces:
IAbstractViewerPanel
,IServiceViewerPanel
,IPropertiesProvider
public class SecuritySettingsPanel extends java.lang.Object implements IServiceViewerPanel
Settings for security service.
-
-
Field Summary
Fields Modifier and Type Field Description protected CertTree
certtree
The main certificate tree.protected static java.lang.String
DEFAULT_CERT_STORE
protected IExternalAccess
jccaccess
Access to jcc component.protected javax.swing.JTabbedPane
main
Main pane.protected java.util.Map<java.lang.String,java.lang.String>
nacerts
Name authority certificates (dn to cert).protected javax.swing.JTable
natable
Name authorities panel.protected javax.swing.JTable
nwtable
Networks table.protected javax.swing.JTextArea
pfsecret
Text area to display the platform secret.protected javax.swing.JCheckBox
printsecret
Print secret check box.protected javax.swing.JTable
roletable
Role table.protected ISecurityService
secservice
The security service.protected IPlatformSettings
settings
The settings service.protected javax.swing.JTable
trustedtable
Trusted names panel.protected javax.swing.JCheckBox
usesecret
Use secret check box.-
Fields inherited from interface jadex.base.gui.componentviewer.IAbstractViewerPanel
PROPERTY_VIEWERCLASS
-
-
Constructor Summary
Constructors Constructor Description SecuritySettingsPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.JPanel
createGeneralPanel()
protected javax.swing.JPanel
createNameAuthoritiesPanel()
Creates panel for name authorities.protected javax.swing.JPanel
createNetworkPanel()
Create the network panel.protected javax.swing.JPanel
createRolePanel()
Creates the role panel.protected javax.swing.JPanel
createTrustedNamesPanel()
Creates panel for name authorities.javax.swing.JComponent
getComponent()
The component to be shown in the gui.java.lang.String
getId()
The id used for mapping properties.IFuture<Properties>
getProperties()
OverrideIFuture<java.lang.Void>
init(IControlCenter jcc, IService service)
Called once to initialize the panel.protected void
refreshNameAuthorities()
Refreshes the networks.protected void
refreshNetworks()
Refreshes the networks.protected void
refreshPlatformSecretState()
Refreshes the networks.protected void
refreshRoles()
Refreshes the networks.protected void
refreshTrustedPlatforms()
Refreshes the networks.protected void
setNetwork()
Sets secret for network.IFuture<java.lang.Void>
setProperties(Properties props)
OverrideIFuture<java.lang.Void>
shutdown()
Informs the panel that it should stop all its computationprotected void
writeCertStore(byte[] newstore)
Writes the cert store.
-
-
-
Field Detail
-
DEFAULT_CERT_STORE
protected static final java.lang.String DEFAULT_CERT_STORE
- See Also:
- Constant Field Values
-
jccaccess
protected IExternalAccess jccaccess
Access to jcc component.
-
settings
protected IPlatformSettings settings
The settings service.
-
secservice
protected ISecurityService secservice
The security service.
-
main
protected javax.swing.JTabbedPane main
Main pane.
-
nwtable
protected javax.swing.JTable nwtable
Networks table.
-
natable
protected javax.swing.JTable natable
Name authorities panel.
-
nacerts
protected java.util.Map<java.lang.String,java.lang.String> nacerts
Name authority certificates (dn to cert).
-
trustedtable
protected javax.swing.JTable trustedtable
Trusted names panel.
-
roletable
protected javax.swing.JTable roletable
Role table.
-
usesecret
protected javax.swing.JCheckBox usesecret
Use secret check box.
-
printsecret
protected javax.swing.JCheckBox printsecret
Print secret check box.
-
pfsecret
protected javax.swing.JTextArea pfsecret
Text area to display the platform secret.
-
certtree
protected CertTree certtree
The main certificate tree.
-
-
Method Detail
-
init
public IFuture<java.lang.Void> init(IControlCenter jcc, IService service)
Called once to initialize the panel. Called on the swing thread.- Specified by:
init
in interfaceIServiceViewerPanel
- Parameters:
jcc
- The jcc.service
- The service.
-
shutdown
public IFuture<java.lang.Void> shutdown()
Informs the panel that it should stop all its computation- Specified by:
shutdown
in interfaceIAbstractViewerPanel
-
getId
public java.lang.String getId()
The id used for mapping properties.- Specified by:
getId
in interfaceIAbstractViewerPanel
-
getComponent
public javax.swing.JComponent getComponent()
The component to be shown in the gui.- Specified by:
getComponent
in interfaceIAbstractViewerPanel
- Returns:
- The component to be displayed.
-
setProperties
public IFuture<java.lang.Void> setProperties(Properties props)
Override- Specified by:
setProperties
in interfaceIPropertiesProvider
-
getProperties
public IFuture<Properties> getProperties()
Override- Specified by:
getProperties
in interfaceIPropertiesProvider
-
createGeneralPanel
protected javax.swing.JPanel createGeneralPanel()
- Returns:
-
createNetworkPanel
protected javax.swing.JPanel createNetworkPanel()
Create the network panel.- Returns:
- The network panel.
-
createRolePanel
protected javax.swing.JPanel createRolePanel()
Creates the role panel.- Returns:
- The role panel.
-
createNameAuthoritiesPanel
protected javax.swing.JPanel createNameAuthoritiesPanel()
Creates panel for name authorities.- Returns:
- Panel for name authorities.
-
createTrustedNamesPanel
protected javax.swing.JPanel createTrustedNamesPanel()
Creates panel for name authorities.- Returns:
- Panel for name authorities.
-
setNetwork
protected void setNetwork()
Sets secret for network.- Parameters:
nwn
- The network name.
-
writeCertStore
protected void writeCertStore(byte[] newstore)
Writes the cert store.- Parameters:
newstore
- The content.
-
refreshPlatformSecretState
protected void refreshPlatformSecretState()
Refreshes the networks.
-
refreshNetworks
protected void refreshNetworks()
Refreshes the networks.
-
refreshRoles
protected void refreshRoles()
Refreshes the networks.
-
refreshNameAuthorities
protected void refreshNameAuthorities()
Refreshes the networks.
-
refreshTrustedPlatforms
protected void refreshTrustedPlatforms()
Refreshes the networks.
-
-