class BasicAuthentication implements Authentication {

    @Override
    public AuthenticationResult authenticate( Map<String,Object> authToken ) throws AuthenticationException
    {
        if ( authToken.containsKey( NEW_CREDENTIALS ) )
        {
            return update( authToken );
        }
        else
        {
            return doAuthenticate( authToken );
        }
    }

    public  BasicAuthentication( AuthManager authManager, UserManagerSupplier userManagerSupplier );

}