Class UrlAuthenticationHandler
java.lang.Object
org.teamapps.application.server.system.auth.UrlAuthenticationHandler
- All Implemented Interfaces:
AuthenticationHandler
public class UrlAuthenticationHandler extends java.lang.Object implements AuthenticationHandler
-
Constructor Summary
Constructors Constructor Description UrlAuthenticationHandler(java.util.function.Supplier<AuthenticationConfig> authenticationConfigSupplier)Encoding scheme: base64(login:timestamp:sha256Hex(login:pwd-hash:timestamp:secret)) -
Method Summary
Modifier and Type Method Description Userauthenticate(org.teamapps.ux.session.SessionContext context, java.util.Map<java.lang.String,java.lang.Object> clientParameters)static java.lang.StringcreateToken(java.lang.String login, java.lang.String password, long timestamp, java.lang.String secret)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UrlAuthenticationHandler
public UrlAuthenticationHandler(java.util.function.Supplier<AuthenticationConfig> authenticationConfigSupplier)Encoding scheme: base64(login:timestamp:sha256Hex(login:pwd-hash:timestamp:secret))- Parameters:
authenticationConfigSupplier-
-
-
Method Details
-
authenticate
public User authenticate(org.teamapps.ux.session.SessionContext context, java.util.Map<java.lang.String,java.lang.Object> clientParameters)- Specified by:
authenticatein interfaceAuthenticationHandler
-
createToken
public static java.lang.String createToken(java.lang.String login, java.lang.String password, long timestamp, java.lang.String secret)
-