Package fr.gouv.vitam.security.internal.filter

# Class AuthorizationFilter

java.lang.Object
fr.gouv.vitam.security.internal.filter.AuthorizationFilter

All Implemented Interfaces:
  `jakarta.ws.rs.container.DynamicFeature`

@PreMatching @Priority(3040) public class AuthorizationFilter extends Object implements jakarta.ws.rs.container.DynamicFeature
Handles permission based access authorization for REST endpoints.

Registers for each `Secured`-annotated endpoint with authorization filter.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AuthorizationFilter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `configure(jakarta.ws.rs.container.ResourceInfo resourceInfo, jakarta.ws.rs.core.FeatureContext context)`
  Registers endpoint authorization filters for each @Secured endpoint resource.

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

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

- ## Constructor Details

  - ### AuthorizationFilter

    public AuthorizationFilter()

- ## Method Details

  - ### configure

    public void configure(jakarta.ws.rs.container.ResourceInfo resourceInfo, jakarta.ws.rs.core.FeatureContext context)
    Registers endpoint authorization filters for each @Secured endpoint resource. Invoked for each endpoint resource.
    Specified by:
      `configure` in interface `jakarta.ws.rs.container.DynamicFeature`
    Parameters:
      `resourceInfo` -
      `context` -