Interface UsernamePasswordAuthenticator
- All Superinterfaces:
AutoCloseable
,Closeable
Authentication mechanism.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(String username, char[] password) Performs authentication using the supplied credentials and returns the authenticatedSubject
default void
close()
default void
init
(ProtocolServer<?> server) Invoked by theProtocolServer
on startup.
-
Method Details
-
authenticate
Performs authentication using the supplied credentials and returns the authenticatedSubject
-
init
Invoked by theProtocolServer
on startup. Can perform additional configuration- Parameters:
server
-
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-