org.marketcetera.util.ws.stateful
Interface Authenticator

All Known Implementing Classes:
FixedAuthenticator

public interface Authenticator

An authenticator of user credentials.

Since:
1.0.0
Version:
$Id: Authenticator.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

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.
 

Method Detail

shouldAllow

boolean shouldAllow(StatelessClientContext context,
                    String user,
                    char[] password)
                    throws I18NException
Checks whether the given credentials can be used to initiate a new session on behalf of the client with the given context.

Parameters:
context - The context.
user - The user name.
password - The password.
Returns:
True if the given credentials are acceptable.
Throws:
I18NException - Thrown if the authenticator encounters an error while checking the credentials.


Copyright © 2012. All Rights Reserved.