java.lang.Object
io.helidon.security.integration.jersey.SecurityFeature
All Implemented Interfaces:
Feature

@ConstrainedTo(SERVER) public final class SecurityFeature 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

    • SecurityFeature

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

      public SecurityFeature(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