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 CertTreecerttreeThe main certificate tree.protected static java.lang.StringDEFAULT_CERT_STOREprotected IExternalAccessjccaccessAccess to jcc component.protected javax.swing.JTabbedPanemainMain pane.protected java.util.Map<java.lang.String,java.lang.String>nacertsName authority certificates (dn to cert).protected javax.swing.JTablenatableName authorities panel.protected javax.swing.JTablenwtableNetworks table.protected javax.swing.JTextAreapfsecretText area to display the platform secret.protected javax.swing.JCheckBoxprintsecretPrint secret check box.protected javax.swing.JTableroletableRole table.protected ISecurityServicesecserviceThe security service.protected IPlatformSettingssettingsThe settings service.protected javax.swing.JTabletrustedtableTrusted names panel.protected javax.swing.JCheckBoxusesecretUse 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.JPanelcreateGeneralPanel()protected javax.swing.JPanelcreateNameAuthoritiesPanel()Creates panel for name authorities.protected javax.swing.JPanelcreateNetworkPanel()Create the network panel.protected javax.swing.JPanelcreateRolePanel()Creates the role panel.protected javax.swing.JPanelcreateTrustedNamesPanel()Creates panel for name authorities.javax.swing.JComponentgetComponent()The component to be shown in the gui.java.lang.StringgetId()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 voidrefreshNameAuthorities()Refreshes the networks.protected voidrefreshNetworks()Refreshes the networks.protected voidrefreshPlatformSecretState()Refreshes the networks.protected voidrefreshRoles()Refreshes the networks.protected voidrefreshTrustedPlatforms()Refreshes the networks.protected voidsetNetwork()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 voidwriteCertStore(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:
initin 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:
shutdownin interfaceIAbstractViewerPanel
-
getId
public java.lang.String getId()
The id used for mapping properties.- Specified by:
getIdin interfaceIAbstractViewerPanel
-
getComponent
public javax.swing.JComponent getComponent()
The component to be shown in the gui.- Specified by:
getComponentin interfaceIAbstractViewerPanel- Returns:
- The component to be displayed.
-
setProperties
public IFuture<java.lang.Void> setProperties(Properties props)
Override- Specified by:
setPropertiesin interfaceIPropertiesProvider
-
getProperties
public IFuture<Properties> getProperties()
Override- Specified by:
getPropertiesin 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.
-
-