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 Type
    Method
    Description
    char[]
    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