Package de.intarsys.tools.authenticate
Interface IPasswordProvider
-
- All Known Subinterfaces:
IAuthenticationProvider
- All Known Implementing Classes:
ConstantPasswordProvider
,NullPasswordProvider
public interface IPasswordProvider
A simple interface for a password provider. Implementors can provide passwords from any source, for example a database or a GUI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description char[]
getPassword()
Returns a password or null to indicate cancellation.
-
-
-
Method Detail
-
getPassword
char[] getPassword()
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.
- Returns:
- a char[] containing the password or null
-
-