- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ListenerPasswordAuthenticatorDelegateFunctional Interface for an Authenticator that uses an authentication strategy based on a user name and password. Pass implementations of this interface to the
ListenerPasswordAuthenticatorto realize specific authentication strategies.
boolean authenticate(@NonNull String username, @NonNull char password)Authenticate a client based on the passed credentials.
username- client supplied username
password- client supplied password
- true when the client is authorized.