T - type of configuration used by this validator. Each validator must have its own AbacValidatorConfig class, so
we can uniquely identify the one to callpublic interface AbacValidator<T extends AbacValidatorConfig>
AbacAnnotation, so we can check all are processed even
if validator is missing| Modifier and Type | Method and Description |
|---|---|
Class<T> |
configClass()
Class of the configuration type.
|
String |
configKey()
Key of a configuration entry that maps to this validator's configuration.
|
T |
fromAnnotations(EndpointConfig endpointConfig)
Load configuration class instance from annotations this validator expects.
|
T |
fromConfig(Config config)
Load configuration class instance from
Config. |
default Collection<Class<? extends Annotation>> |
supportedAnnotations()
Provide extension annotations supported by this validator (e.g.
|
void |
validate(T config,
Errors.Collector collector,
ProviderRequest request)
Validate that the configuration provided would grant access to the resource.
|
default Collection<Class<? extends Annotation>> supportedAnnotations()
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.
The annotations will be transformed to configuration by fromAnnotations(EndpointConfig).String configKey()
ConfigT fromConfig(Config config)
Config.config - configuration located on the key this validator expects in configKey()T fromAnnotations(EndpointConfig endpointConfig)
endpointConfig - endpoint configvoid validate(T config, Errors.Collector collector, ProviderRequest request)
Errors.Collector#fatal(Object, String).config - configuration of this validatorcollector - error collector to gather issues with this request (e.g. "service not in role ABC")request - ABAC context containing subject(s), object(s) and environmentCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.