public class RoamingCredentialReader extends CredentialReader
When reading a Digital Identity store, the user may optionally have a connection to the Security Manager and Directory set. When these connections are not provided, key management operations are not possible (key update, DN change, ...). The user may also optionally have a credential writer set. The following credential writers can all be used with this credential reader:
RoamingCredentialWriterFilenameProfileWriterPKCS12WriterStreamProfileWriterUser 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);
RoamingCredentialWriter| Constructor and Description |
|---|
RoamingCredentialReader(java.lang.String roamingUserId,
RoamingConfiguration configuration)
Creates a
RoamingCredentialReader object. |
RoamingCredentialReader(java.lang.String roamingUserId,
java.lang.String iniFile)
Creates a
RoamingCredentialReader object. |
RoamingCredentialReader(java.lang.String roamingUserId,
java.lang.String iniFile,
boolean smProxyEnabled)
Creates a
RoamingCredentialReader object. |
| Modifier and Type | Method and Description |
|---|---|
void |
deregister()
Requests the Roaming Server remove all of the User's roaming files from
the Directory.
|
RoamingCredentialWriter |
getRoamingCredentialWriter()
Returns a
RoamingCredentialWriter object that is safe for use
with this reader. |
java.lang.String |
getType()
Returns the name of this type of credential reader.
|
checkPwdpublic RoamingCredentialReader(java.lang.String roamingUserId,
java.lang.String iniFile)
throws java.io.FileNotFoundException,
RoamingException
RoamingCredentialReader object.roamingUserId - the roaming user id to read the Digital Identity from.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 RoamingCredentialReader(java.lang.String roamingUserId,
java.lang.String iniFile,
boolean smProxyEnabled)
throws java.io.FileNotFoundException,
RoamingException
RoamingCredentialReader object.roamingUserId - the roaming user id to read the Digital Identity from.iniFile - the entrust.ini file to read the roaming configuration data from.smProxyEnabled - enables SMProxy supportjava.io.FileNotFoundExceptionRoamingExceptionpublic RoamingCredentialReader(java.lang.String roamingUserId,
RoamingConfiguration configuration)
RoamingCredentialReader object.roamingUserId - the roaming user id to read the Digital Identity from.configuration - the roaming configuration data.public RoamingCredentialWriter getRoamingCredentialWriter()
RoamingCredentialWriter object that is safe for use
with this reader.RoamingCredentialWriter object that is safe for use
with this reader.public void deregister()
throws UserNotLoggedInException,
RoamingException,
java.io.IOException
User.login()
RoamingException - if removal of the user's roaming files failed.java.io.IOException - if the operation failed due to any communication problem.UserNotLoggedInException - if the user is not logged in.public java.lang.String getType()
getType in class CredentialReader