Class TestPassAuthenticator
- java.lang.Object
-
- org.apache.ofbiz.common.authentication.example.TestFailAuthenticator
-
- org.apache.ofbiz.common.authentication.example.TestPassAuthenticator
-
- All Implemented Interfaces:
Authenticator
public class TestPassAuthenticator extends TestFailAuthenticator
TestPassAuthenticator
-
-
Field Summary
-
Fields inherited from class org.apache.ofbiz.common.authentication.example.TestFailAuthenticator
delegator, dispatcher, weight
-
-
Constructor Summary
Constructors Constructor Description TestPassAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authenticate(java.lang.String username, java.lang.String password, boolean isServiceAuth)
Method to authenticate a userboolean
isEnabled()
Flag to test if this Authenticator is enabled-
Methods inherited from class org.apache.ofbiz.common.authentication.example.TestFailAuthenticator
getWeight, initialize, isSingleAuthenticator, isUserSynchronized, logout, syncUser, updatePassword
-
-
-
-
Method Detail
-
authenticate
public boolean authenticate(java.lang.String username, java.lang.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
-
-