Class FixedAuthenticator
- java.lang.Object
-
- org.marketcetera.util.ws.stateful.FixedAuthenticator
-
- All Implemented Interfaces:
Authenticator
public class FixedAuthenticator extends Object implements Authenticator
An authenticator which accepts a single pair of user name/password credentials.- Since:
- 1.0.0
- Version:
- $Id: FixedAuthenticator.java 16154 2012-07-14 16:34:05Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Field Summary
Fields Modifier and Type Field Description private static char[]DEFAULT_PASSWORDprivate static StringDEFAULT_USER
-
Constructor Summary
Constructors Constructor Description FixedAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldAllow(StatelessClientContext context, String user, char[] password)Checks whether the given credentials can be used to initiate a new session on behalf of the client with the given context.
-
-
-
Field Detail
-
DEFAULT_USER
private static final String DEFAULT_USER
- See Also:
- Constant Field Values
-
DEFAULT_PASSWORD
private static final char[] DEFAULT_PASSWORD
-
-
Method Detail
-
shouldAllow
public boolean shouldAllow(StatelessClientContext context, String user, char[] password)
Description copied from interface:AuthenticatorChecks whether the given credentials can be used to initiate a new session on behalf of the client with the given context.- Specified by:
shouldAllowin interfaceAuthenticator- Parameters:
context- The context.user- The user name.password- The password.- Returns:
- True if the given credentials are acceptable.
-
-