Class AbacProvider
java.lang.Object
io.helidon.security.providers.abac.AbacProvider
- All Implemented Interfaces:
- AuthorizationProvider,- SecurityProvider
Attribute based access control (ABAC) provider.
 This provider gathers all attributes to be validated on endpoint and makes sure they are all validated as expected during
 authorization process.
 Each attribute to be validated must have a 
AbacValidator implemented.- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionauthorize(ProviderRequest providerRequest) Authorize a request based on configuration.static AbacProvider.Builderbuilder()Creates a fluent API builder to build new instances of this class.static AbacProvidercreate()Creates a new provider instance with default configuration.static AbacProviderCreates a new provider instance from configuration.Collection<Class<? extends Annotation>> Provide extension annotations supported by this provider (e.g.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.security.spi.AuthorizationProviderisUserInRoleMethods inherited from interface io.helidon.security.spi.SecurityProvidersupportedAttributes, supportedConfigKeys, supportedCustomObjects
- 
Method Details- 
builderCreates a fluent API builder to build new instances of this class.- Returns:
- a new builder instance
 
- 
createCreates a new provider instance from configuration.- Parameters:
- config- configuration
- Returns:
- ABAC provider instantiated from config
 
- 
createCreates a new provider instance with default configuration.- Returns:
- ABAC provider
 
- 
supportedAnnotationsDescription copied from interface:SecurityProviderProvide extension annotations supported by this provider (e.g.jakarta.annotation.security.RolesAllowed). Annotations will be collected according to framework in use. For JAX-RS, annotations from application class, resource class and resource methods will be collected.- Specified by:
- supportedAnnotationsin interface- SecurityProvider
- Returns:
- Collection of annotations this provider expects.
 
- 
authorizeDescription copied from interface:AuthorizationProviderAuthorize a request based on configuration. Authorization cannot be optional. If this method is called, it should always attempt to authorize the current request. This method will be invoked for inbound requests ONLY.- Specified by:
- authorizein interface- AuthorizationProvider
- Parameters:
- providerRequest- context of this security enforcement/validation
- Returns:
- response that either permits, denies or abstains from decision
- See Also:
 
 
-