The purpose of the interceptor is to include, within the code stream, a class responsible for collecting/manipulating information passed through the HTTP request, such as the authorization header, URL, and credentials provided by the HTTP agent. The concept is presented in the following diagram:
An interceptor is added before or after the call to the process responsible for handling the declared logic within the application. This interceptor involves your code and will act as a security guardian.
Any type of data that is not in the interceptor's processing policy causes some action to be taken within the application. ...