Package io.deephaven.authentication.sql
Class BasicSqlAuthenticationHandler
java.lang.Object
io.deephaven.authentication.sql.BasicSqlAuthenticationHandler
- All Implemented Interfaces:
BasicAuthMarshaller.Handler
If the user isn't found or the password doesn't match, reject with an exception. Note that the calling code may
decide to treat this rejection as "might be the wrong handler" instead, as usage of basic auth can technically be
confused with other forms of handshake messages.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionLikeAuthenticationRequestHandler.login(long, ByteBuffer, HandshakeResponseListener)
, takes the client's identity assertion and tries to validate it.static void
-
Constructor Details
-
BasicSqlAuthenticationHandler
public BasicSqlAuthenticationHandler()
-
-
Method Details
-
login
Description copied from interface:BasicAuthMarshaller.Handler
LikeAuthenticationRequestHandler.login(long, ByteBuffer, HandshakeResponseListener)
, takes the client's identity assertion and tries to validate it. As with those methods, returns an auth context to signal success, and can return empty to signal failure as well as throwing an exception.- Specified by:
login
in interfaceBasicAuthMarshaller.Handler
- Parameters:
username
- the specified username to authenticate aspassword
- the password to verify the user's identity- Returns:
- AuthContext for this user if applicable else Empty
- Throws:
AuthenticationException
-
main
-