Interface RequestHeadersAuthenticator


public interface RequestHeadersAuthenticator
Allows authenticating a client user using the request headers set and sent from the client side.

This allows an alternate or supplementary authentication to UserAuthenticator.

Typical usage would be to send - using HTTP - an authentication token stored in one of the request headers to a remote cloud provider.
Since:
6.3
Author:
Nicolas de Pomereu
  • Method Summary

    Modifier and Type Method Description
    boolean validate​(Map<String,​String> headers)
    Allows to check/validate the request headers as a mean of client authentication.
  • Method Details

    • validate

      boolean validate​(Map<String,​String> headers) throws IOException
      Allows to check/validate the request headers as a mean of client authentication. If method returns false, user will not be granted access.
      Parameters:
      headers - the request headers sent by the client side.
      Returns:
      true if request headers are OK and validated. If false, the client side will not be authorized to send any command.
      Throws:
      IOException - if an IOException occurs