Class RestCsrfPreventionFilter

java.lang.Object
org.apache.hadoop.hbase.rest.filter.RestCsrfPreventionFilter
All Implemented Interfaces:
javax.servlet.Filter

@Public public class RestCsrfPreventionFilter extends Object implements javax.servlet.Filter
This filter provides protection against cross site request forgery (CSRF) attacks for REST APIs. Enabling this filter on an endpoint results in the requirement of all client to send a particular (configurable) HTTP header with every request. In the absense of this header the filter will reject the attempt as a bad request.