Class 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 Detail

      • DEFAULT_PASSWORD

        private static final char[] DEFAULT_PASSWORD
    • 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.