Class SecurityFeature
- 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()));
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecurityFeature.Builder
SecurityFeature
fluent API builder.
-
Constructor Summary
Constructors Constructor Description SecurityFeature()
Create 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityFeature.Builder
builder(Security security)
Builder forSecurityFeature
.boolean
configure(FeatureContext context)
-
-
-
Constructor Detail
-
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 Detail
-
builder
public static SecurityFeature.Builder builder(Security security)
Builder forSecurityFeature
.- Parameters:
security
- Security instance to create this feature for (cannot build a feature without security instance)- Returns:
- Builder to configure feature
-
configure
public boolean configure(FeatureContext context)
-
-