Package gda.jython.authenticator
Class TestUserAuthenticator
java.lang.Object
gda.jython.authenticator.TestUserAuthenticator
- All Implemented Interfaces:
Authenticator
Authenticator used for testing - user is authenticated if the username starts with test
-
Field Summary
Fields inherited from interface gda.jython.authenticator.Authenticator
AUTHENTICATORCLASS_PROPERTY, DEFAULT_AUTHENTICATOR, NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAuthenticated(String username, String password) Returns true if the username and password can be authenticated.
-
Constructor Details
-
TestUserAuthenticator
public TestUserAuthenticator()
-
-
Method Details
-
isAuthenticated
Description copied from interface:AuthenticatorReturns true if the username and password can be authenticated.- Specified by:
isAuthenticatedin interfaceAuthenticator- Parameters:
username-password-- Returns:
- boolean
-