Package io.trino.server.ui
Class InsecureFormAuthenticator
- java.lang.Object
-
- io.trino.server.ui.InsecureFormAuthenticator
-
- All Implemented Interfaces:
FormAuthenticator
public class InsecureFormAuthenticator extends Object implements FormAuthenticator
-
-
Constructor Summary
Constructors Constructor Description InsecureFormAuthenticator(InsecureAuthenticatorConfig config, SecurityConfig securityConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisLoginEnabled(boolean secure)booleanisPasswordAllowed(boolean secure)Optional<String>isValidCredential(String username, String password, boolean secure)
-
-
-
Constructor Detail
-
InsecureFormAuthenticator
@Inject public InsecureFormAuthenticator(InsecureAuthenticatorConfig config, SecurityConfig securityConfig)
-
-
Method Detail
-
isLoginEnabled
public boolean isLoginEnabled(boolean secure)
- Specified by:
isLoginEnabledin interfaceFormAuthenticator
-
isPasswordAllowed
public boolean isPasswordAllowed(boolean secure)
- Specified by:
isPasswordAllowedin interfaceFormAuthenticator
-
isValidCredential
public Optional<String> isValidCredential(String username, String password, boolean secure)
- Specified by:
isValidCredentialin interfaceFormAuthenticator
-
-