public final class EndpointConfig extends java.lang.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 |
|---|---|
static EndpointConfig.Builder |
builder()
Creates a fluent API builder to build new instances of this class.
|
<T extends java.lang.annotation.Annotation> |
combineAnnotations(java.lang.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.
|
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.List<java.lang.annotation.Annotation>> |
getAnnotations(EndpointConfig.AnnotationScope... scopes)
All custom annotations for scopes defined in parameters, in the same order.
|
java.util.Collection<java.lang.String> |
getAttributeNames()
A collection of all property names in this container.
|
java.lang.Object |
getAttributeRaw(java.lang.String key)
Return the actual property value or null if not present.
|
java.util.Optional<Config> |
getConfig(java.lang.String configKey)
Get
Config instance for a config key. |
<U> java.util.Optional<U> |
getInstance(java.lang.Class<U> clazz)
Get an instance of a custom object configuring this endpoint.
|
java.util.Collection<java.lang.Class<?>> |
getInstanceKeys()
Get all classes of custom endpoint configuration object registered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributepublic static EndpointConfig.Builder builder()
public static EndpointConfig create()
public java.lang.Object getAttributeRaw(java.lang.String key)
AbacSupportgetAttributeRaw in interface AbacSupportkey - key (name) of the propertypublic java.util.Collection<java.lang.String> getAttributeNames()
AbacSupportgetAttributeNames in interface AbacSupportpublic <U> java.util.Optional<U> getInstance(java.lang.Class<U> clazz)
U - type of the configurationclazz - class the instance is bound under (only explicit binding is supported)public java.util.Collection<java.lang.Class<?>> getInstanceKeys()
public java.util.Optional<Config> getConfig(java.lang.String configKey)
Config instance for a config key.configKey - key of configuration expectedpublic java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.List<java.lang.annotation.Annotation>> getAnnotations(EndpointConfig.AnnotationScope... scopes)
scopes - scopes the caller is interested inSecurityProvider.supportedAnnotations()public <T extends java.lang.annotation.Annotation> java.util.List<T> combineAnnotations(java.lang.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.