com.entrust.toolkit.credentials
Class CredentialWriter

java.lang.Object
  |
  +--com.entrust.toolkit.credentials.CredentialWriter
Direct Known Subclasses:
FilenameProfileWriter, StreamProfileWriter, TokenInitializer, TokenWriter

public abstract class CredentialWriter
extends java.lang.Object

CredentialWriter is the abstract super class of the credential writers in the Toolkit.

The Toolkit provides the following credential writer classes:


Constructor Summary
CredentialWriter()
           
 
Method Summary
 void checkPwd(User user, SecureStringBuffer pwd)
          checks the password if it keeps the conditions of the password rules
 boolean writePossible()
           Determines whether or not the credentials can be written to the CredentialWriter specified in the code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialWriter

public CredentialWriter()
Method Detail

writePossible

public boolean writePossible()
Determines whether or not the credentials can be written to the CredentialWriter specified in the code.

This method returns true if the credentials can be written to the specified CredentialWriter. Otherwise, it returns false.


checkPwd

public void checkPwd(User user,
                     SecureStringBuffer pwd)
              throws UserBadPasswordException,
                     CertificateException
checks the password if it keeps the conditions of the password rules
Parameters:
user - The user whose password has to be ckecked
pwd - The password used to write the credentials