com.entrust.toolkit.credentials
Class UALCredentialReader

java.lang.Object
  |
  +--com.entrust.toolkit.credentials.CredentialReader
        |
        +--com.entrust.toolkit.credentials.UALCredentialReader

public final class UALCredentialReader
extends CredentialReader

UALCredentialReader subclasses CredentialReader to read credentials that have been bound to a computer using the Entrust/Toolkit Server Login feature.


Constructor Summary
UALCredentialReader(java.io.InputStream credentials, java.io.InputStream passwordCache)
           Creating a UALCredentialReader object allows unattended server processes while the user is logged in.
 
Methods inherited from class com.entrust.toolkit.credentials.CredentialReader
checkPwd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UALCredentialReader

public UALCredentialReader(java.io.InputStream credentials,
                           java.io.InputStream passwordCache)
                    throws Base64Exception
Creating a UALCredentialReader object allows unattended server processes while the user is logged in.

Creating a UALCredentialReader object decodes the password automatically from the associated secure password storage file ( .ual), and allows unattended server processes while the user is logged in.

Server login should be used only on physically secured machines.

In the User.login method, you have to specify an empty SecureStringBuffer as the password. If you pass in null, you will get a NullPointerException.

Note
If you use StreamProfileReader and StreamProfileWriter objects to read and write to credentials managed by instances of the FileInputStream and FileOutputStream classes, ensure that you read from, and write to, files with different file names to prevent the destruction of the credentials file when you open the output stream.
Parameters:
inputStream - the input stream pointing to the credentials file (.ual)
passwordCache - the input stream pointing to the user's password
Throws:
Base64Exception -