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

# Class EndpointAdminOnlyAuthorizationFilter

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

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

public class EndpointAdminOnlyAuthorizationFilter extends Object implements jakarta.ws.rs.container.ContainerRequestFilter
Handles permission based access authorization for REST endpoints.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `EndpointAdminOnlyAuthorizationFilter(boolean isAdminOnly)`
  Contructor with isAdminOnly option

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `filter(jakarta.ws.rs.container.ContainerRequestContext requestContext)`
  Checks authorization filter based of the current security profile permission set.

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

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

- ## Constructor Details

  - ### EndpointAdminOnlyAuthorizationFilter

    public EndpointAdminOnlyAuthorizationFilter(boolean isAdminOnly)
    Contructor with isAdminOnly option
    Parameters:
      `isAdminOnly` -

- ## Method Details

  - ### filter

    public void filter(jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException
    Checks authorization filter based of the current security profile permission set.
    Specified by:
      `filter` in interface `jakarta.ws.rs.container.ContainerRequestFilter`
    Parameters:
      `requestContext` - the invocation context
    Throws:
      `IOException`