AbacSupportpublic final class EndpointConfig extends Object implements AbacSupport
| Modifier and Type | Class | Description |
|---|---|---|
static class |
EndpointConfig.AnnotationScope |
Scope of annotations used in applications that integrate
security.
|
static class |
EndpointConfig.Builder |
A fluent API builder for
EndpointConfig. |
AbacSupport.BasicAttributes| Modifier and Type | Method | Description |
|---|---|---|
static EndpointConfig.Builder |
builder() |
Creates a fluent API builder to build new instances of this class.
|
<T extends Annotation> |
combineAnnotations(Class<T> annotationClass,
EndpointConfig.AnnotationScope... scopes) |
Get all annotations of a specific class declared on any level.
|
static EndpointConfig |
create() |
Create an instance of endpoint config with default values (e.g.
|
EndpointConfig.Builder |
derive() |
Derive a new endpoint configuration builder based on this instance.
|
Map<Class<? extends Annotation>,List<Annotation>> |
getAnnotations(EndpointConfig.AnnotationScope... scopes) |
All custom annotations for scopes defined in parameters, in the same order.
|
Collection<String> |
getAttributeNames() |
A collection of all property names in this container.
|
Object |
getAttributeRaw(String key) |
Return the actual property value or null if not present.
|
Optional<Config> |
getConfig(String configKey) |
Get
Config instance for a config key. |
<U> Optional<U> |
getInstance(Class<U> clazz) |
Get an instance of a custom object configuring this endpoint.
|
Collection<Class<?>> |
getInstanceKeys() |
Get all classes of custom endpoint configuration object registered.
|
getAttributepublic static EndpointConfig.Builder builder()
public static EndpointConfig create()
public Object getAttributeRaw(String key)
AbacSupportgetAttributeRaw in interface AbacSupportkey - key (name) of the propertypublic Collection<String> getAttributeNames()
AbacSupportgetAttributeNames in interface AbacSupportpublic <U> Optional<U> getInstance(Class<U> clazz)
U - type of the configurationclazz - class the instance is bound under (only explicit binding is supported)public Collection<Class<?>> getInstanceKeys()
public Optional<Config> getConfig(String configKey)
Config instance for a config key.configKey - key of configuration expectedpublic Map<Class<? extends Annotation>,List<Annotation>> getAnnotations(EndpointConfig.AnnotationScope... scopes)
scopes - scopes the caller is interested inSecurityProvider.supportedAnnotations()public <T extends Annotation> List<T> combineAnnotations(Class<T> annotationClass, EndpointConfig.AnnotationScope... scopes)
T - type of annotation wantedannotationClass - Class of annotation you wantscopes - scopes the caller is interested inpublic EndpointConfig.Builder derive()
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.