org.springframework.cloud.dataflow.rest.util

## Class ResourceBasedAuthorizationInterceptor

- java.lang.Object
- - org.springframework.cloud.dataflow.rest.util.ResourceBasedAuthorizationInterceptor

- All Implemented Interfaces:
    org.apache.http.HttpRequestInterceptor

      public class ResourceBasedAuthorizationInterceptor
      extends Object
      implements org.apache.http.HttpRequestInterceptor

  `HttpRequestInterceptor` that adds an `Authorization` header with a value obtained from a `Resource`.
  Author:
    Mike Heath

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ResourceBasedAuthorizationInterceptor(CheckableResource resource)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `process(org.apache.http.HttpRequest httpRequest, org.apache.http.protocol.HttpContext httpContext)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ResourceBasedAuthorizationInterceptor

          public ResourceBasedAuthorizationInterceptor(CheckableResource resource)

  - ### Method Detail

    - #### process

          public void process(org.apache.http.HttpRequest httpRequest,
                              org.apache.http.protocol.HttpContext httpContext)
                       throws org.apache.http.HttpException,
                              IOException

      Specified by:
        `process` in interface `org.apache.http.HttpRequestInterceptor`
      Throws:
        `org.apache.http.HttpException`
        `IOException`

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.