Class AuthenticationFeature

java.lang.Object
alpine.server.filters.AuthenticationFeature
All Implemented Interfaces:
jakarta.ws.rs.container.DynamicFeature

@Provider public class AuthenticationFeature extends Object implements jakarta.ws.rs.container.DynamicFeature
Determines if authentication is required or not (via Config.AlpineKey.ENFORCE_AUTHENTICATION and if so mandates that all resources requested are authenticated unless they are annotated with AuthenticationNotRequired.
Since:
1.0.0
Author:
Steve Springett
See Also:
  • Constructor Details

    • AuthenticationFeature

      public AuthenticationFeature()
  • Method Details

    • configure

      public void configure(jakarta.ws.rs.container.ResourceInfo resourceInfo, jakarta.ws.rs.core.FeatureContext context)
      Specified by:
      configure in interface jakarta.ws.rs.container.DynamicFeature