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
Modifier and TypeMethodDescriptionchar[]
Returns a password or null to indicate cancellation.
-
Method Details
-
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
-