Class JerseySecurityFeature

java.lang.Object
io.helidon.microprofile.security.JerseySecurityFeature
All Implemented Interfaces:
Feature

@ConstrainedTo(SERVER) public final class JerseySecurityFeature extends Object implements Feature
Integration of Security module with Jersey.

Register this as you would any other feature, e.g.:

 ResourceConfig resourceConfig = new ResourceConfig();
 // register JAX-RS resource
 resourceConfig.register(MyResource.class);
 // integrate security
 resourceConfig.register(new SecurityFeature(buildSecurity()));
 
  • Constructor Details

    • JerseySecurityFeature

      public JerseySecurityFeature()
      Create a new instance of security feature for a security component.
      This constructor is workaround solution for Jersey instantiation problem.
    • JerseySecurityFeature

      public JerseySecurityFeature(Security security)
      Create a new instance of security feature for a security component.
      Parameters:
      security - Fully configured security component to integrate with Jersey
  • Method Details