de.intarsys.tools.authenticate
Class ConstantPasswordProvider

java.lang.Object
  extended by de.intarsys.tools.authenticate.ConstantPasswordProvider
All Implemented Interfaces:
IPasswordProvider

public class ConstantPasswordProvider
extends java.lang.Object
implements IPasswordProvider

A simple IPasswordProvider to return a constant value.


Constructor Summary
ConstantPasswordProvider(char[] password)
           
 
Method Summary
 char[] getPassword()
          Returns a password or null to indicate cancellation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantPasswordProvider

public ConstantPasswordProvider(char[] password)
Method Detail

getPassword

public char[] getPassword()
Description copied from interface: IPasswordProvider
Returns a password or null to indicate cancellation.

You should be prepared that requesting the password twice will return an empty array or null, as the provider may null out the object for security reasons.

Specified by:
getPassword in interface IPasswordProvider
Returns:
a char[] containing the password or null