com.holonplatform.jaxrs.server.security.internal

## Class SpringSecurityAuthContextFilter

- java.lang.Object
- - com.holonplatform.jaxrs.server.internal.auth.AbstractAuthContextFilter
  - - com.holonplatform.jaxrs.server.security.internal.SpringSecurityAuthContextFilter

- All Implemented Interfaces:
    javax.ws.rs.container.ContainerRequestFilter

      @Priority(value=985)
      public class SpringSecurityAuthContextFilter
      extends com.holonplatform.jaxrs.server.internal.auth.AbstractAuthContextFilter

  Filter to replace the request `SecurityContext` with an `AuthContext` compatible implementation, using Spring Security to obtain current authentication and authorities.

  The `Realm` is obtained either from a registered `ContextResolver` of `Realm` type, if available, or as a `Context` resource using `Realm.getCurrent()`.

  When this filter is registered and enabled, the default `AuthContext` filter is skipped.

  Since:
    5.1.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SpringSecurityAuthContextFilter()`

  - ### Method Summary

    - ### Methods inherited from class com.holonplatform.jaxrs.server.internal.auth.AbstractAuthContextFilter

      `filter`

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

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

- - ### Constructor Detail

    - #### SpringSecurityAuthContextFilter

          public SpringSecurityAuthContextFilter()

Copyright © 2019 The Holon Platform. All rights reserved.