Class TestPassAuthenticator
java.lang.Object
org.apache.ofbiz.common.authentication.example.TestFailAuthenticator
org.apache.ofbiz.common.authentication.example.TestPassAuthenticator
- All Implemented Interfaces:
Authenticator
TestPassAuthenticator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticate
(String username, String password, boolean isServiceAuth) Method to authenticate a userboolean
Flag to test if this Authenticator is enabledMethods inherited from class org.apache.ofbiz.common.authentication.example.TestFailAuthenticator
getWeight, initialize, isSingleAuthenticator, isUserSynchronized, logout, syncUser, updatePassword
-
Constructor Details
-
TestPassAuthenticator
public TestPassAuthenticator()
-
-
Method Details
-
authenticate
public boolean authenticate(String username, String password, boolean isServiceAuth) throws AuthenticatorException Method to authenticate a user- Specified by:
authenticate
in interfaceAuthenticator
- Overrides:
authenticate
in classTestFailAuthenticator
- Parameters:
username
- User's usernamepassword
- User's passwordisServiceAuth
- true if authentication is for a service call- Returns:
- true if the user is authenticated
- Throws:
AuthenticatorException
- when a fatal error occurs during authentication
-
isEnabled
public boolean isEnabled()Flag to test if this Authenticator is enabled- Specified by:
isEnabled
in interfaceAuthenticator
- Overrides:
isEnabled
in classTestFailAuthenticator
- Returns:
- true if the Authenticator is enabled
-