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 authenticatedSubjectdefault voidclose()default voidinit(ProtocolServer<?> server) Invoked by theProtocolServeron startup.
-
Method Details
-
authenticate
Performs authentication using the supplied credentials and returns the authenticatedSubject -
init
Invoked by theProtocolServeron startup. Can perform additional configuration- Parameters:
server-
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-