public class RoamingCredentialWriter extends CredentialWriter
The following credential readers can all be used with this credential writer:
RoamingCredentialReaderCredentialCreatorCredentialRecovererFilenameProfileReaderStreamProfileReaderUser user = new User(); user.setConnections(ENTRUST_INI_FILE); SecureStringBuffer securePassword = new SecureStringBuffer(PASSWORD); CredentialReader credentialReader = new RoamingCredentialReader(ROAMING_USER_ID, ENTRUST_INI_FILE); CredentialWriter credentialWriter = new RoamingCredentialWriter(ROAMING_USER_ID, ENTRUST_INI_FILE); user.setCredentialWriter(credentialWriter); user.login(credentialReader, securePassword); user.write();
RoamingCredentialReader| Constructor and Description |
|---|
RoamingCredentialWriter(java.lang.String roamingUserId,
RoamingConfiguration configuration)
Creates a
RoamingCredentialWriter object. |
RoamingCredentialWriter(java.lang.String roamingUserId,
java.lang.String iniFile)
Creates a
RoamingCredentialWriter object. |
RoamingCredentialWriter(java.lang.String roamingUserId,
java.lang.String iniFile,
boolean smProxyEnabled)
Creates a
RoamingCredentialWriter object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getType()
Returns the name of this type of Credential Writer.
|
addConfiguration, writePossiblepublic RoamingCredentialWriter(java.lang.String roamingUserId,
java.lang.String iniFile)
throws RoamingException,
java.io.FileNotFoundException
RoamingCredentialWriter object.roamingUserId - the roaming user id for the digital identity being written. If this
writer is being used with a RoamingCredentialReader, and the
user ids are different, this will result in a roaming user id change.
If it is being used with any other reader type, this will become the user's
roaming user id.iniFile - the entrust.ini file to read the roaming configuration data from.java.io.FileNotFoundException - if iniFile cannot be foundRoamingException - if any required configuration is missing or invalid.public RoamingCredentialWriter(java.lang.String roamingUserId,
java.lang.String iniFile,
boolean smProxyEnabled)
throws RoamingException,
java.io.FileNotFoundException
RoamingCredentialWriter object.roamingUserId - the roaming user id for the digital identity being written. If this
writer is being used with a RoamingCredentialReader, and the
user ids are different, this will result in a roaming user id change.
If it is being used with any other reader type, this will become the user's
roaming user id.iniFile - the entrust.ini file to read the roaming configuration data from.smProxyEnabled - enables SMProxy supportjava.io.FileNotFoundException - if iniFile cannot be foundRoamingException - if any required configuration is missing or invalid.public RoamingCredentialWriter(java.lang.String roamingUserId,
RoamingConfiguration configuration)
RoamingCredentialWriter object.roamingUserId - the roaming user id for the digital identity being written. If this
writer is being used with a RoamingCredentialReader, and the
user ids are different, this will result in a roaming user id change.
If it is being used with any other reader type, this will become the user's
roaming user id.configuration - the roaming configuration data.public java.lang.String getType()
getType in class CredentialWriter