public class RoamingFileUpdater
extends java.lang.Object
While this class is public, it is intended for internal use by the Toolkit only.
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
SERVER_VERSION_50
The 5.0 version
|
static byte[] |
SERVER_VERSION_51
The 5.1 version
|
| Constructor and Description |
|---|
RoamingFileUpdater(RoamingConfiguration configuration,
User user)
Creates a
RoamingFileUpdater object when a logged in
User object is available. |
RoamingFileUpdater(RoamingConfiguration configuration,
User user,
X509Certificate[] certChain,
java.security.PrivateKey signingKey)
Creates a
RoamingFileUpdater object when a User
object is available but is not logged in. |
| Modifier and Type | Method and Description |
|---|---|
void |
deregister(java.lang.String roamingUserId)
Requests the Roaming Server remove all of the User's roaming files from
the Directory.
|
byte[] |
getServerVersion(java.lang.String roamingUserId)
Retrieves the latest version of Roaming supported by the Roaming Server.
|
void |
setPasswordInfo(java.lang.String roamingUserId,
SecureStringBuffer password,
boolean includeUserId)
Sets the information required to generate the shared secret.
|
void |
update(byte[] entrustProfile)
Update a roaming profile.
|
void |
update(EntrustFiles filesToUpdate)
Updates all of the given files by sending an update request to
the Roaming Server.
|
public static final byte[] SERVER_VERSION_50
public static final byte[] SERVER_VERSION_51
public RoamingFileUpdater(RoamingConfiguration configuration, User user) throws RoamingException, UserNotLoggedInException
RoamingFileUpdater object when a logged in
User object is available.configuration - The Roaming configuration information.user - A logged in User object that will be used to communicate
securely with the Roaming ServerRoamingException - if no certificate chain can be found for the user.UserNotLoggedInException - if user is not logged inpublic RoamingFileUpdater(RoamingConfiguration configuration, User user, X509Certificate[] certChain, java.security.PrivateKey signingKey)
RoamingFileUpdater object when a User
object is available but is not logged in.configuration - The Roaming configuration information.user - A User object that will be used to communicate
securely with the Roaming ServercertChain - The certificate chain from the user's verification certificate to the
root of trust.signingKey - The user's private signing key.public void setPasswordInfo(java.lang.String roamingUserId,
SecureStringBuffer password,
boolean includeUserId)
roamingUserId - the user's roaming user id.password - the user's password.includeUserId - whether or not the roaming user id should be included in update
requests. Set to true when creating, recovering or changing
the roaming user id of a roaming profile, and false in the
case of password change.public void update(byte[] entrustProfile)
throws RoamingException,
java.io.IOException
setPasswordInfo(java.lang.String, com.entrust.toolkit.util.SecureStringBuffer, boolean) should be called before if anything other than a simple
update is being performed.entrustProfile - the bytes of the profile. These will be converted to ISO 8859-1 format.java.io.IOException - if any socket communication errors occur while updating the profile.RoamingException - if any other problem occurs when updating the profile.public void update(EntrustFiles filesToUpdate) throws RoamingException, java.io.IOException
filesToUpdate - The roaming files to update. This could include the profile.java.io.IOException - if any socket communication errors occur while updating the profile.RoamingException - if any other problem occurs when updating the profile.public void deregister(java.lang.String roamingUserId)
throws RoamingException,
java.io.IOException
roamingUserId - the user's roaming user id.RoamingException - if removal of the user's roaming files failed.java.io.IOException - if the operation failed due to any communication problem.public byte[] getServerVersion(java.lang.String roamingUserId)
throws RoamingException,
java.io.IOException
roamingUserId - the Roaming ID of the user performing the request.byte array
java.io.IOException - if the query failed due to any communication
problemRoamingException - if the query operation failed for any other reason.