Class DefaultRequestHeadersAuthenticator

java.lang.Object
org.kawanfw.sql.api.server.auth.headers.DefaultRequestHeadersAuthenticator
All Implemented Interfaces:
RequestHeadersAuthenticator

public class DefaultRequestHeadersAuthenticator
extends Object
implements RequestHeadersAuthenticator
A concrete and unsafe RequestHeadersAuthenticator that always grant access to remote client users.
This class will be automatically loaded if no RequestHeadersAuthenticator has been declared in the aceql-server.properties file.
Since:
6.3
Author:
Nicolas de Pomereu
  • Constructor Details

    • DefaultRequestHeadersAuthenticator

      public DefaultRequestHeadersAuthenticator()
  • Method Details

    • validate

      public boolean validate​(Map<String,​String> headers) throws IOException
      Description copied from interface: RequestHeadersAuthenticator
      Allows to check/validate the request headers as a mean of client authentication. If method returns false, user will not be granted access.
      Specified by:
      validate in interface RequestHeadersAuthenticator
      Parameters:
      headers - the request headers sent by the client side.
      Returns:
      true. (Client is always granted access).
      Throws:
      IOException - if an IOException occurs