Class SecurityFeature
java.lang.Object
io.helidon.security.integration.jersey.SecurityFeature
- 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.SecurityFeature
(Security security) Create a new instance of security feature for a security component. -
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityFeature.Builder
Builder forSecurityFeature
.boolean
configure
(FeatureContext context)
-
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
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 forSecurityFeature
.- Parameters:
security
- Security instance to create this feature for (cannot build a feature without security instance)- Returns:
- Builder to configure feature
-
configure
-