se.entra.phantom.server.rconsole
Class AdminConfigSecureLogin

java.lang.Object
  extended by se.entra.phantom.server.rconsole.AdminConfigSecureLogin
All Implemented Interfaces:
Cloneable

public class AdminConfigSecureLogin
extends Object
implements Cloneable

Handles configuration of the SecureLogin definition.


Constructor Summary
AdminConfigSecureLogin(VirtualPanel vp)
          Creates a profile from the configuration panel.
 
Method Summary
static void clearPanel(VirtualPanel vp)
          Clears the panel.
 AdminConfigSecureLogin createCopy()
          Creates a copy of this profile for editing purpose.
 boolean doSendSMS()
          Checks if SMS is sent or not (debug mode).
 int getCodeLength()
          Gets the length of code.
 String getColorError()
          Gets the color for error.
 String getColorOK()
          Gets the color for OK.
 String getCountryCode()
          Gets the country code.
 String getFailureDocument()
          Gets the failure page as absolute path.
 int getMaxAge()
          Gets the maximum age that a session can have in seconds.
 String getName()
          Gets the name of this profile in upper case.
 int getNpAppMaxAge()
          Gets the maximum age that a session can have while waiting for a Java Client to start the NetPhantom Application in seconds.
 String getPasswordDocument()
          Gets the password page as absolute path.
static AdminConfigSecureLogin getProfile(String name)
          Gets a profile by name.
static Enumeration<String> getProfileNames()
          Gets the enumeration of profile names in an AdminConfigSecureLogin object enumeration.
static Enumeration<AdminConfigSecureLogin> getProfiles()
          Gets the enumeration of profiles in an AdminConfigSecureLogin object enumeration.
static Hashtable<String,AdminConfigSecureLogin> getProfilesCopy()
          Returns a copy of the profiles that can be used for editing the individual profiles.
 String getSmsMessage()
          Gets the message for SMS.
 String getWelcomeDocument()
          Gets the welcome document name as absolute path.
 void initiatePanel(VirtualPanel vp)
          Initiates the panel from this profile.
 boolean isPinCodeUsed()
          Checks if pin code is used or not.
static void loadSettings(IniFile ini)
          Loads the settings for all sections (SecureLogin_nnn) in the "resource.ini" file (the "ini" parameter).
static void saveSettings(IniFile ini, Hashtable<String,AdminConfigSecureLogin> newOrChanged, Hashtable deleted)
          Saves the settings of a changed/new and deleted profiles (name/AdminConfigSecureLogin objects) in the "resources.ini" file.
static void setPanelDefaults(VirtualPanel vp)
          Sets the panel default entries for a new profile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminConfigSecureLogin

public AdminConfigSecureLogin(VirtualPanel vp)
                       throws Exception
Creates a profile from the configuration panel. If there is a failure, the focus is set correctly in the panel and an appropriate message box is displayed.

Throws:
Exception - for failure.
Method Detail

loadSettings

public static void loadSettings(IniFile ini)
Loads the settings for all sections (SecureLogin_nnn) in the "resource.ini" file (the "ini" parameter).


saveSettings

public static void saveSettings(IniFile ini,
                                Hashtable<String,AdminConfigSecureLogin> newOrChanged,
                                Hashtable deleted)
Saves the settings of a changed/new and deleted profiles (name/AdminConfigSecureLogin objects) in the "resources.ini" file. The table "newOrChanged" is saved for further use, so it must NOT be modified (or it's objects) in any way.


getProfiles

public static Enumeration<AdminConfigSecureLogin> getProfiles()
Gets the enumeration of profiles in an AdminConfigSecureLogin object enumeration.


getProfileNames

public static Enumeration<String> getProfileNames()
Gets the enumeration of profile names in an AdminConfigSecureLogin object enumeration.


getProfile

public static AdminConfigSecureLogin getProfile(String name)
Gets a profile by name. The name is converted to upper case if required.

Returns:
null if not found.

getProfilesCopy

public static Hashtable<String,AdminConfigSecureLogin> getProfilesCopy()
Returns a copy of the profiles that can be used for editing the individual profiles. The table has the name as the key and the element is the AdminConfigSecureLogin object.


createCopy

public AdminConfigSecureLogin createCopy()
Creates a copy of this profile for editing purpose.


setPanelDefaults

public static void setPanelDefaults(VirtualPanel vp)
Sets the panel default entries for a new profile. The clear is done first by checking if there is a default profile that matches the "pin code" check box, called SecureLogin_default or SecureLogin_defaultPinCode in "resources.ini". If this is not found, other default values are set.


clearPanel

public static void clearPanel(VirtualPanel vp)
Clears the panel.


initiatePanel

public void initiatePanel(VirtualPanel vp)
Initiates the panel from this profile.


getName

public String getName()
Gets the name of this profile in upper case.


getMaxAge

public int getMaxAge()
Gets the maximum age that a session can have in seconds.


getNpAppMaxAge

public int getNpAppMaxAge()
Gets the maximum age that a session can have while waiting for a Java Client to start the NetPhantom Application in seconds.


isPinCodeUsed

public boolean isPinCodeUsed()
Checks if pin code is used or not.


getCodeLength

public int getCodeLength()
Gets the length of code.


getWelcomeDocument

public String getWelcomeDocument()
Gets the welcome document name as absolute path.


getPasswordDocument

public String getPasswordDocument()
Gets the password page as absolute path.


getFailureDocument

public String getFailureDocument()
Gets the failure page as absolute path.


getCountryCode

public String getCountryCode()
Gets the country code.


getSmsMessage

public String getSmsMessage()
Gets the message for SMS.


getColorOK

public String getColorOK()
Gets the color for OK.


getColorError

public String getColorError()
Gets the color for error.


doSendSMS

public boolean doSendSMS()
Checks if SMS is sent or not (debug mode).



Phantom® and NetPhantom® are registered trademarks of Codectica Systems SARL.
© Copyright Codectica Systems SARL, 2008. All rights reserved.