public class EndpointConfig extends Object implements AbacSupport
| Modifier and Type | Class and 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 and Description |
|---|---|
Collection<String> |
abacAttributeNames()
A collection of all property names in this container.
|
Object |
abacAttributeRaw(String key)
Return the actual property value or null if not present.
|
Map<Class<? extends Annotation>,List<Annotation>> |
annotations(EndpointConfig.AnnotationScope... scopes)
All custom annotations for scopes defined in parameters, in the same order.
|
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.
|
Optional<Config> |
config(String configKey)
Get
Config instance for a config key. |
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.
|
<U> Optional<U> |
instance(Class<U> clazz)
Get an instance of a custom object configuring this endpoint.
|
Collection<Class<?>> |
instanceKeys()
Get all classes of custom endpoint configuration object registered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabacAttributepublic static EndpointConfig.Builder builder()
public static EndpointConfig create()
public Object abacAttributeRaw(String key)
AbacSupportabacAttributeRaw in interface AbacSupportkey - key (name) of the propertypublic Collection<String> abacAttributeNames()
AbacSupportabacAttributeNames in interface AbacSupportpublic <U> Optional<U> instance(Class<U> clazz)
U - type of the configurationclazz - class the instance is bound under (only explicit binding is supported)public Collection<Class<?>> instanceKeys()
public Optional<Config> config(String configKey)
Config instance for a config key.configKey - key of configuration expectedpublic Map<Class<? extends Annotation>,List<Annotation>> annotations(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–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.