Package io.helidon.microprofile.security
Class JerseySecurityFeature
java.lang.Object
io.helidon.microprofile.security.JerseySecurityFeature
- All Implemented Interfaces:
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()));
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCreate a new instance of security feature for a security component.JerseySecurityFeature
(Security security) Create a new instance of security feature for a security component. -
Method Summary
Modifier and TypeMethodDescriptionBuilder forJerseySecurityFeature
.boolean
configure
(FeatureContext context)
-
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
Create a new instance of security feature for a security component.- Parameters:
security
- Fully configured security component to integrate with Jersey
-
-
Method Details
-
builder
Builder forJerseySecurityFeature
.- Parameters:
security
- Security instance to create this feature for (cannot build a feature without security instance)- Returns:
- Builder to configure feature
-
configure
-