Package de.intarsys.tools.authenticate
Class NullPasswordProvider
- java.lang.Object
-
- de.intarsys.tools.authenticate.NullPasswordProvider
-
- All Implemented Interfaces:
IPasswordProvider
public class NullPasswordProvider extends java.lang.Object implements IPasswordProvider
A dummyIPasswordProvider
for example to use in a batch environment.
-
-
Constructor Summary
Constructors Constructor Description NullPasswordProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
getPassword()
Returns a password or null to indicate cancellation.
-
-
-
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 interfaceIPasswordProvider
- Returns:
- a char[] containing the password or null
-
-