public class RoamingConfigurationWithSMProxy extends RoamingConfiguration
This class provides dynamic configuration of SMProxy support based the value of the proxyOrder parameter. The following ProxyOrder values are used to control the Proxy Ordering:
The determination of which configuration to use is performed in the constructor.
NOTE: A simple TCP/IP connection attempt is used as a connectivity test. For the proxied connection, this test is performed against the proxy server, not the roaming server.
| Constructor and Description |
|---|
RoamingConfigurationWithSMProxy(IniFile iniFile,
ProxyOrder proxyOrder)
Constructor that takes an entrust.ini file and sets the proxyFirst parameter.
|
RoamingConfigurationWithSMProxy(java.lang.String entrustIniFile,
ProxyOrder proxyOrder)
Constructor that takes an entrust.ini file path and sets the proxyFirst parameter.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectTimeout() |
JNDIDirectory |
getDirectory()
Return a connection to the Directory specified in the ini file.
|
boolean |
getFilesFromServer()
Return
true if the client will request the Roaming Server
retrieve roaming files from the Directory, false if
the client will retrieve the files. |
java.lang.String |
getKeyType()
Returns the symmetric key type to use when communicating with the Roaming Server,
as parsed from the ini file.
|
java.lang.String |
getProfileServerDN()
Return the distinguished name of the Roaming Server.
|
java.lang.String |
getRoamingIDField()
Return the Directory attribute used to store the Roaming User ID.
|
java.lang.String |
getRoamingServerIP()
Return the host name or IP address of the Roaming Server, as parsed from
the ini file.
|
int |
getRoamingServerPort()
Return the port number of the Roaming Server, as parsed from
the ini file.
|
int |
getRoamingSSLPort()
Return the port number to use for SSL communication with the Roaming Server.
|
java.lang.String |
getRoamSearchBase()
Return the Search Base to use when searching the Directory for roaming files,
as parsed from the ini file.
|
java.net.URL |
getSMRoamingProxyURL()
Returns the SMRoamingProxyURL value or null if this value has not been set.
|
java.net.URL |
getSMRoamingServerProxyURL()
Returns the SMRoamingServerProxyURL value or null if this value has not been set.
|
void |
setConnectTimeout(int connectTimeout) |
void |
setFilesFromServer(boolean filesFromServer)
Set to
true if the client will request the Roaming Server
retrieve roaming files from the Directory, false if
the client will retrieve the files. |
void |
setKeyType(java.lang.String keyType)
Sets the symmetric key type to use when communicating with the Roaming Server.
|
void |
setProfileServerDN(java.lang.String profileServerDN)
Set the distinguished name of the Roaming Server
|
void |
setRoamingIDField(java.lang.String roamingIDField)
Sets the Directory attribute used to store the Roaming User ID.
|
void |
setRoamingServerPort(int roamingServerPort)
Set the port number of the Roaming Server.
|
void |
setRoamingSSLPort(int roamingSSLPort)
Set the port number to use for SSL communication with the Roaming Server.
|
void |
setSMRoamingProxyURL(java.net.URL m_SMRoamingProxyURL)
Sets the SMProxy URL for the roaming server.
|
void |
setSMRoamingServerProxyURL(java.net.URL m_SMRoamingServerProxyURL)
Sets the SMProxy URL for the directory that contains the roaming credentials.
|
public RoamingConfigurationWithSMProxy(java.lang.String entrustIniFile,
ProxyOrder proxyOrder)
throws RoamingException,
java.net.MalformedURLException,
java.io.FileNotFoundException,
java.text.ParseException
entrustIniFile - the entrust.ini file that contains the Roaming configuration informationproxyOrder - true if the proxy settings should be attempted firstRoamingException - if there are no roaming settings in the entrust.ini filejava.net.MalformedURLException - if the proxy server address is invalidjava.io.FileNotFoundException - if the entrust.ini file cannot be foundjava.text.ParseException - if the roaming parameters invalidpublic RoamingConfigurationWithSMProxy(IniFile iniFile, ProxyOrder proxyOrder) throws RoamingException, java.text.ParseException, java.net.MalformedURLException
iniFile - the entrust.ini file that contains the Roaming configuration information.proxyOrder - true if the proxy settings should be attempted firstjava.io.FileNotFoundException - if the entrust.ini file cannot be found *RoamingException - if there are no roaming settings in the entrust.ini filejava.text.ParseException - if the roaming parameters are invalidjava.net.MalformedURLException - if the proxy server address is invalidpublic int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
connectTimeout - the timeout value to be used in milliseconds.public JNDIDirectory getDirectory()
RoamingConfigurationgetDirectory in class RoamingConfigurationpublic java.lang.String getKeyType()
RoamingConfigurationgetKeyType in class RoamingConfigurationpublic void setKeyType(java.lang.String keyType)
throws RoamingException
RoamingConfigurationValid values are "CAST-128", "Triple DES" and "IDEA". The default is "CAST-128".
setKeyType in class RoamingConfigurationkeyType - the symmetric key type to use when communicating with the Roaming ServerRoamingException - if key type is invalidpublic java.lang.String getProfileServerDN()
RoamingConfigurationgetProfileServerDN in class RoamingConfigurationpublic void setProfileServerDN(java.lang.String profileServerDN)
throws RoamingException
RoamingConfigurationsetProfileServerDN in class RoamingConfigurationprofileServerDN - the distinguished name of the Roaming Server.RoamingExceptionpublic boolean getFilesFromServer()
RoamingConfigurationtrue if the client will request the Roaming Server
retrieve roaming files from the Directory, false if
the client will retrieve the files.getFilesFromServer in class RoamingConfigurationtrue if the client will request the Roaming Server
retrieve roaming files from the Directory, false if
the client will retrieve the files.public void setFilesFromServer(boolean filesFromServer)
RoamingConfigurationtrue if the client will request the Roaming Server
retrieve roaming files from the Directory, false if
the client will retrieve the files.setFilesFromServer in class RoamingConfigurationfilesFromServer - set to true if the client will request
the Roaming Server retrieve roaming files from the Directory, false
if the client will retrieve the files. The default is false.public java.lang.String getRoamingIDField()
RoamingConfigurationgetRoamingIDField in class RoamingConfigurationpublic void setRoamingIDField(java.lang.String roamingIDField)
throws RoamingException
RoamingConfigurationsetRoamingIDField in class RoamingConfigurationroamingIDField - the Directory attribute used to store the Roaming User ID.
The default value is "userid".RoamingExceptionpublic java.lang.String getRoamingServerIP()
RoamingConfigurationgetRoamingServerIP in class RoamingConfigurationpublic int getRoamingServerPort()
RoamingConfigurationgetRoamingServerPort in class RoamingConfigurationpublic void setRoamingServerPort(int roamingServerPort)
RoamingConfigurationsetRoamingServerPort in class RoamingConfigurationroamingServerPort - the port number of the Roaming Server. Default
is port 640.public int getRoamingSSLPort()
RoamingConfigurationgetRoamingSSLPort in class RoamingConfigurationpublic void setRoamingSSLPort(int roamingSSLPort)
RoamingConfigurationsetRoamingSSLPort in class RoamingConfigurationroamingSSLPort - the port number to use for SSL communication with
the Roaming Server. The default is the RoamingServerPort value. Setting
this value to '0' will cause the RoamingServerPort value to be used.public java.lang.String getRoamSearchBase()
RoamingConfigurationgetRoamSearchBase in class RoamingConfigurationpublic java.net.URL getSMRoamingServerProxyURL()
RoamingConfigurationgetSMRoamingServerProxyURL in class RoamingConfigurationpublic void setSMRoamingServerProxyURL(java.net.URL m_SMRoamingServerProxyURL)
RoamingConfigurationsetSMRoamingServerProxyURL in class RoamingConfigurationm_SMRoamingServerProxyURL - the m_SMRoamingServerProxyURL to setpublic void setSMRoamingProxyURL(java.net.URL m_SMRoamingProxyURL)
RoamingConfigurationsetSMRoamingProxyURL in class RoamingConfigurationm_SMRoamingProxyURL - the m_SMRoamingProxyURL to setpublic java.net.URL getSMRoamingProxyURL()
RoamingConfigurationgetSMRoamingProxyURL in class RoamingConfiguration