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 SummaryFields 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.IAbstractViewerPanelPROPERTY_VIEWERCLASS
 
- 
 - 
Constructor SummaryConstructors Constructor Description SecuritySettingsPanel()
 - 
Method SummaryAll 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_STOREprotected static final java.lang.String DEFAULT_CERT_STORE - See Also:
- Constant Field Values
 
 - 
jccaccessprotected IExternalAccess jccaccess Access to jcc component.
 - 
settingsprotected IPlatformSettings settings The settings service.
 - 
secserviceprotected ISecurityService secservice The security service.
 - 
mainprotected javax.swing.JTabbedPane main Main pane.
 - 
nwtableprotected javax.swing.JTable nwtable Networks table.
 - 
natableprotected javax.swing.JTable natable Name authorities panel.
 - 
nacertsprotected java.util.Map<java.lang.String,java.lang.String> nacerts Name authority certificates (dn to cert).
 - 
trustedtableprotected javax.swing.JTable trustedtable Trusted names panel.
 - 
roletableprotected javax.swing.JTable roletable Role table.
 - 
usesecretprotected javax.swing.JCheckBox usesecret Use secret check box.
 - 
printsecretprotected javax.swing.JCheckBox printsecret Print secret check box.
 - 
pfsecretprotected javax.swing.JTextArea pfsecret Text area to display the platform secret.
 - 
certtreeprotected CertTree certtree The main certificate tree.
 
- 
 - 
Method Detail- 
initpublic IFuture<java.lang.Void> init(IControlCenter jcc, IService service) Called once to initialize the panel. Called on the swing thread.- Specified by:
- initin interface- IServiceViewerPanel
- Parameters:
- jcc- The jcc.
- service- The service.
 
 - 
shutdownpublic IFuture<java.lang.Void> shutdown() Informs the panel that it should stop all its computation- Specified by:
- shutdownin interface- IAbstractViewerPanel
 
 - 
getIdpublic java.lang.String getId() The id used for mapping properties.- Specified by:
- getIdin interface- IAbstractViewerPanel
 
 - 
getComponentpublic javax.swing.JComponent getComponent() The component to be shown in the gui.- Specified by:
- getComponentin interface- IAbstractViewerPanel
- Returns:
- The component to be displayed.
 
 - 
setPropertiespublic IFuture<java.lang.Void> setProperties(Properties props) Override- Specified by:
- setPropertiesin interface- IPropertiesProvider
 
 - 
getPropertiespublic IFuture<Properties> getProperties() Override- Specified by:
- getPropertiesin interface- IPropertiesProvider
 
 - 
createGeneralPanelprotected javax.swing.JPanel createGeneralPanel() - Returns:
 
 - 
createNetworkPanelprotected javax.swing.JPanel createNetworkPanel() Create the network panel.- Returns:
- The network panel.
 
 - 
createRolePanelprotected javax.swing.JPanel createRolePanel() Creates the role panel.- Returns:
- The role panel.
 
 - 
createNameAuthoritiesPanelprotected javax.swing.JPanel createNameAuthoritiesPanel() Creates panel for name authorities.- Returns:
- Panel for name authorities.
 
 - 
createTrustedNamesPanelprotected javax.swing.JPanel createTrustedNamesPanel() Creates panel for name authorities.- Returns:
- Panel for name authorities.
 
 - 
setNetworkprotected void setNetwork() Sets secret for network.- Parameters:
- nwn- The network name.
 
 - 
writeCertStoreprotected void writeCertStore(byte[] newstore) Writes the cert store.- Parameters:
- newstore- The content.
 
 - 
refreshPlatformSecretStateprotected void refreshPlatformSecretState() Refreshes the networks.
 - 
refreshNetworksprotected void refreshNetworks() Refreshes the networks.
 - 
refreshRolesprotected void refreshRoles() Refreshes the networks.
 - 
refreshNameAuthoritiesprotected void refreshNameAuthorities() Refreshes the networks.
 - 
refreshTrustedPlatformsprotected void refreshTrustedPlatforms() Refreshes the networks.
 
- 
 
-