org.marketcetera.util.ws.stateful
Class FixedAuthenticator

java.lang.Object
  extended by 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

Constructor Summary
FixedAuthenticator()
           
 
Method Summary
 boolean shouldAllow(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedAuthenticator

public FixedAuthenticator()
Method Detail

shouldAllow

public boolean shouldAllow(StatelessClientContext context,
                           String user,
                           char[] password)
Description copied from interface: Authenticator
Checks whether the given credentials can be used to initiate a new session on behalf of the client with the given context.

Specified by:
shouldAllow in interface Authenticator
Parameters:
context - The context.
user - The user name.
password - The password.
Returns:
True if the given credentials are acceptable.


Copyright © 2012. All Rights Reserved.