public class RoamingConfiguration
extends java.lang.Object
The following entries are required in the [Entrust Settings] section:
The following entries are optional:
useridThe following entries are only used if SMProxy is enabled. URL's must be HTTP only:
FilesFromServer
setting is false, this parameter will have no effect.| Constructor and Description |
|---|
RoamingConfiguration(IniFile iniFile,
boolean smProxyEnabled)
Create a
RoamingConfiguration object. |
RoamingConfiguration(java.lang.String iniFile)
Create a
RoamingConfiguration object. |
RoamingConfiguration(java.lang.String iniFile,
boolean smProxyEnabled)
Create a
RoamingConfiguration object. |
RoamingConfiguration(java.lang.String directory,
java.lang.String roamingServerIP,
java.lang.String roamSearchBase)
Create a
RoamingConfiguration object. |
| Modifier and Type | Method and Description |
|---|---|
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 |
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 RoamingConfiguration(java.lang.String directory,
java.lang.String roamingServerIP,
java.lang.String roamSearchBase)
throws RoamingException
RoamingConfiguration object.
Allows roaming configuration in situations where file access may not be permitted.
directory - The host name or IP address of the Directory Server, with an optional port number.
If the port number is omitted, 389 is used as the default. Multiple hosts
can be listed in a comma-delimited format.roamingServerIP - The host name or IP address of the Roaming Server. The default port number
is 640. Use setRoamingServerPort to set the port value.roamSearchBase - The Directory search base to use when searching for Roaming information.RoamingException - if any of the provided values are invalidpublic RoamingConfiguration(java.lang.String iniFile)
throws RoamingException,
java.io.FileNotFoundException
RoamingConfiguration object.iniFile - the path to the entrust.ini file that contains the Roaming
configuration information.RoamingException - if any of the required settings in iniFile are missing,
or those present are invalid.java.io.FileNotFoundException - if iniFile cannot be foundpublic RoamingConfiguration(java.lang.String iniFile,
boolean smProxyEnabled)
throws RoamingException,
java.io.FileNotFoundException
RoamingConfiguration object.iniFile - the path to the entrust.ini file that contains the Roaming
configuration information.smProxyEnabled - true if the proxy settings should be usedRoamingException - if any of the required settings in iniFile are missing,
or those present are invalid.java.io.FileNotFoundException - if iniFile cannot be foundpublic RoamingConfiguration(IniFile iniFile, boolean smProxyEnabled) throws RoamingException
RoamingConfiguration object.iniFile - the entrust.ini file that contains the Roaming
configuration information.smProxyEnabled - true if the proxy settings should be usedRoamingException - if any of the required settings in iniFile are missing,
or those present are invalid.SMProxyManagerTransport( IniFile entrustIniFile ),
SMProxyDirectory(IniFile entrustIniFile)public JNDIDirectory getDirectory()
public java.lang.String getKeyType()
public void setKeyType(java.lang.String keyType)
throws RoamingException
Valid values are "CAST-128", "Triple DES" and "IDEA". The default is "CAST-128".
keyType - the symmetric key type to use when communicating with the Roaming ServerRoamingException - if key type is invalidpublic java.lang.String getProfileServerDN()
public void setProfileServerDN(java.lang.String profileServerDN)
throws RoamingException
profileServerDN - the distinguished name of the Roaming Server.RoamingExceptionpublic boolean getFilesFromServer()
true if the client will request the Roaming Server
retrieve roaming files from the Directory, false if
the client will retrieve the files.true 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)
true if the client will request the Roaming Server
retrieve roaming files from the Directory, false if
the client will retrieve the files.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. The default is false.public java.lang.String getRoamingIDField()
public void setRoamingIDField(java.lang.String roamingIDField)
throws RoamingException
roamingIDField - the Directory attribute used to store the Roaming User ID.
The default value is "userid".RoamingExceptionpublic java.lang.String getRoamingServerIP()
public int getRoamingServerPort()
public void setRoamingServerPort(int roamingServerPort)
roamingServerPort - the port number of the Roaming Server. Default
is port 640.public int getRoamingSSLPort()
public void setRoamingSSLPort(int roamingSSLPort)
roamingSSLPort - 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()
public java.net.URL getSMRoamingProxyURL()
public java.net.URL getSMRoamingServerProxyURL()
public void setSMRoamingServerProxyURL(java.net.URL m_SMRoamingServerProxyURL)
m_SMRoamingServerProxyURL - the m_SMRoamingServerProxyURL to setpublic void setSMRoamingProxyURL(java.net.URL m_SMRoamingProxyURL)
m_SMRoamingProxyURL - the m_SMRoamingProxyURL to set