org.hardtokenmgmt.core.settings
Class GlobalSettings

java.lang.Object
  extended by org.hardtokenmgmt.core.settings.BasicGlobalSettings
      extended by org.hardtokenmgmt.core.settings.GlobalSettings

public class GlobalSettings
extends BasicGlobalSettings

Class managing the globalsettings of the hardtoken management application.

Version:
$Id$
Author:
Philip Vendil 2006-aug-28

Nested Class Summary
static class GlobalSettings.ApplicationMode
           
 
Field Summary
static java.lang.String ADMINCERTMATCH
           
static java.lang.String ALWAYSREQUIREADMINTOKEN
           
static java.lang.String APPHEIGHT
           
static java.lang.String APPLICATION_NAME
           
static GlobalSettings.ApplicationMode appMode
          Special variable indicating if the application is running in applet or application mode.
static java.lang.String APPWIDTH
           
static java.lang.String BACKGROUNDCOLOR
           
static java.lang.String CERTLOGOSELECTOR
           
static java.lang.String DEVELOP_HTMGMT_HOME
           
static java.lang.String DISPLAYTOKENSELECTOR
           
static java.lang.String EJBCAWS_IMPLEMENTATION
           
static java.lang.String EJBCAWS_SOFTKEYSTORE
           
static java.lang.String EJBCAWS_SOFTKEYSTOREPWD
           
static java.lang.String EJBCAWS_URL
           
static java.lang.String FONT
           
static java.lang.String FOREGROUNDCOLOR
           
static java.lang.String HTMFADMINWS_IMPLEMENTATION
           
static java.lang.String HTMFADMINWS_PUBLICPORT
           
static java.lang.String HTMFADMINWS_URL
           
static java.lang.String LOGO_NAME
           
static java.lang.String MAINCONTROLLER
           
static java.lang.String PKCS11_NAME
          Constants used to define existing global settings
static java.lang.String TOKENIMPLEMENTATION
           
static java.lang.String TOKENINITIALBASICPIN
           
static java.lang.String TOKENINITIALSIGNATUREPIN
           
static java.lang.String USERDATASOURCES
           
static java.lang.String VERSION
           
static java.lang.String WSRA_IMPLEMENTATION
           
static java.lang.String WSRA_SOFTKEYSTORE
           
static java.lang.String WSRA_SOFTKEYSTOREPWD
           
static java.lang.String WSRA_URL
           
 
Fields inherited from class org.hardtokenmgmt.core.settings.BasicGlobalSettings
settings
 
Constructor Summary
GlobalSettings()
           
 
Method Summary
 java.lang.String getAdminCertMatch()
           
 java.awt.Color getAppletBackgroundColor()
           
 java.awt.Color getAppletForegroundColor()
           
 int getApplicationHeight()
           
 java.lang.String getApplicationName()
          Returns the configured application name used for resource lookup of application specifiec resources.
 int getApplicationWidth()
           
 CertSelector getCertSelector()
          Method returning the cert Selector implementation from the global configuration settings
 java.lang.String getDefaultTokenLabel()
          Returns the default label of tokens that is reinitilizable and it's possible to set.
 DisplayTokenSelector getDisplayTokenSelector()
          Method returning the display token Selector implementation from the global configuration settings
 org.hardtokenmgmt.ws.gen.HTMFAdminWS getHTMFAdminWSImplementation()
           
 org.hardtokenmgmt.ws.gen.HTMFAdminWS getHTMFAdminWSImplementation(java.lang.String hostname, boolean publicInterface)
           
 IController getMainController()
          Returns an instance of the main controller used at startup of the application.
 java.lang.String getTokenImplementation()
           
 java.lang.String getTokenInitialBasicPIN()
           
 java.lang.String getTokenInitialSignaturePIN()
           
 java.util.List<java.lang.String> getUserDataSourceNames()
          Method returning all the configured user data source names from the property ejbcaws.userdatasourcenames which should be a ',' separated string.
 java.lang.String getVersion()
          Returns the current version of the software
 org.signserver.module.wsra.ws.gen.WSRA getWSRAImplementation()
           
 boolean isAlwaysRequireAdminToken()
           
 
Methods inherited from class org.hardtokenmgmt.core.settings.BasicGlobalSettings
getCustomInterface, getCustomInterface, getExpireThreshould, getProperties, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsInt, getPropertyAsInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PKCS11_NAME

public static final java.lang.String PKCS11_NAME
Constants used to define existing global settings

See Also:
Constant Field Values

TOKENIMPLEMENTATION

public static final java.lang.String TOKENIMPLEMENTATION
See Also:
Constant Field Values

ADMINCERTMATCH

public static final java.lang.String ADMINCERTMATCH
See Also:
Constant Field Values

TOKENINITIALBASICPIN

public static final java.lang.String TOKENINITIALBASICPIN
See Also:
Constant Field Values

TOKENINITIALSIGNATUREPIN

public static final java.lang.String TOKENINITIALSIGNATUREPIN
See Also:
Constant Field Values

APPHEIGHT

public static final java.lang.String APPHEIGHT
See Also:
Constant Field Values

APPWIDTH

public static final java.lang.String APPWIDTH
See Also:
Constant Field Values

FOREGROUNDCOLOR

public static final java.lang.String FOREGROUNDCOLOR
See Also:
Constant Field Values

BACKGROUNDCOLOR

public static final java.lang.String BACKGROUNDCOLOR
See Also:
Constant Field Values

FONT

public static final java.lang.String FONT
See Also:
Constant Field Values

MAINCONTROLLER

public static final java.lang.String MAINCONTROLLER
See Also:
Constant Field Values

EJBCAWS_IMPLEMENTATION

public static final java.lang.String EJBCAWS_IMPLEMENTATION
See Also:
Constant Field Values

EJBCAWS_URL

public static final java.lang.String EJBCAWS_URL
See Also:
Constant Field Values

EJBCAWS_SOFTKEYSTORE

public static final java.lang.String EJBCAWS_SOFTKEYSTORE
See Also:
Constant Field Values

EJBCAWS_SOFTKEYSTOREPWD

public static final java.lang.String EJBCAWS_SOFTKEYSTOREPWD
See Also:
Constant Field Values

HTMFADMINWS_IMPLEMENTATION

public static final java.lang.String HTMFADMINWS_IMPLEMENTATION
See Also:
Constant Field Values

HTMFADMINWS_URL

public static final java.lang.String HTMFADMINWS_URL
See Also:
Constant Field Values

HTMFADMINWS_PUBLICPORT

public static final java.lang.String HTMFADMINWS_PUBLICPORT
See Also:
Constant Field Values

WSRA_IMPLEMENTATION

public static final java.lang.String WSRA_IMPLEMENTATION
See Also:
Constant Field Values

WSRA_URL

public static final java.lang.String WSRA_URL
See Also:
Constant Field Values

WSRA_SOFTKEYSTORE

public static final java.lang.String WSRA_SOFTKEYSTORE
See Also:
Constant Field Values

WSRA_SOFTKEYSTOREPWD

public static final java.lang.String WSRA_SOFTKEYSTOREPWD
See Also:
Constant Field Values

LOGO_NAME

public static final java.lang.String LOGO_NAME
See Also:
Constant Field Values

CERTLOGOSELECTOR

public static final java.lang.String CERTLOGOSELECTOR
See Also:
Constant Field Values

DISPLAYTOKENSELECTOR

public static final java.lang.String DISPLAYTOKENSELECTOR
See Also:
Constant Field Values

USERDATASOURCES

public static final java.lang.String USERDATASOURCES
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values

ALWAYSREQUIREADMINTOKEN

public static final java.lang.String ALWAYSREQUIREADMINTOKEN
See Also:
Constant Field Values

APPLICATION_NAME

public static final java.lang.String APPLICATION_NAME
See Also:
Constant Field Values

DEVELOP_HTMGMT_HOME

public static final java.lang.String DEVELOP_HTMGMT_HOME
See Also:
Constant Field Values

appMode

public static GlobalSettings.ApplicationMode appMode
Special variable indicating if the application is running in applet or application mode.

Constructor Detail

GlobalSettings

public GlobalSettings()
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getTokenImplementation

public java.lang.String getTokenImplementation()

getAdminCertMatch

public java.lang.String getAdminCertMatch()

getTokenInitialBasicPIN

public java.lang.String getTokenInitialBasicPIN()

getTokenInitialSignaturePIN

public java.lang.String getTokenInitialSignaturePIN()

getApplicationHeight

public int getApplicationHeight()

getApplicationWidth

public int getApplicationWidth()

getAppletForegroundColor

public java.awt.Color getAppletForegroundColor()

getAppletBackgroundColor

public java.awt.Color getAppletBackgroundColor()

getMainController

public IController getMainController()
Returns an instance of the main controller used at startup of the application. Or null if no main controller us configured


getHTMFAdminWSImplementation

public org.hardtokenmgmt.ws.gen.HTMFAdminWS getHTMFAdminWSImplementation(java.lang.String hostname,
                                                                         boolean publicInterface)

getHTMFAdminWSImplementation

public org.hardtokenmgmt.ws.gen.HTMFAdminWS getHTMFAdminWSImplementation()

getWSRAImplementation

public org.signserver.module.wsra.ws.gen.WSRA getWSRAImplementation()

getCertSelector

public CertSelector getCertSelector()
Method returning the cert Selector implementation from the global configuration settings


getDisplayTokenSelector

public DisplayTokenSelector getDisplayTokenSelector()
Method returning the display token Selector implementation from the global configuration settings


isAlwaysRequireAdminToken

public boolean isAlwaysRequireAdminToken()

getUserDataSourceNames

public java.util.List<java.lang.String> getUserDataSourceNames()
Method returning all the configured user data source names from the property ejbcaws.userdatasourcenames which should be a ',' separated string. Returns null if user data sources shouldn't be used


getVersion

public java.lang.String getVersion()
Returns the current version of the software


getDefaultTokenLabel

public java.lang.String getDefaultTokenLabel()
Returns the default label of tokens that is reinitilizable and it's possible to set.


getApplicationName

public java.lang.String getApplicationName()
Returns the configured application name used for resource lookup of application specifiec resources.