public static final class EndpointConfig.Builder extends Object implements Builder<EndpointConfig>
EndpointConfig.| Modifier and Type | Method and Description |
|---|---|
EndpointConfig.Builder |
addAtribute(String key,
Object value)
Add an attribute to this endpoint configuration builder.
|
EndpointConfig.Builder |
annotations(EndpointConfig.AnnotationScope scope,
Map<Class<? extends Annotation>,List<Annotation>> annotations)
Add annotations of a specific scope to this request builder.
|
EndpointConfig |
build()
Build the instance from this builder.
|
EndpointConfig.Builder |
config(String configKey,
Config configuration)
Provide a configuration for provider to use.
|
EndpointConfig.Builder |
configMap(Map<String,Config> configMap)
Provider a map of cofiguration keys to configurations for provider(s) to use.
|
<U,V extends U> |
customObject(Class<U> objectClass,
V anObject)
Set or replace a custom object.
|
EndpointConfig.Builder |
customObjects(ClassToInstanceStore<Object> customObjects)
Provide custom object map to be sent to security providers.
|
public EndpointConfig build()
Builderbuild in interface Builder<EndpointConfig>public <U,V extends U> EndpointConfig.Builder customObject(Class<U> objectClass, V anObject)
U - Type of the custom object to be stored. The object instance is available ONLY under this classV - Type of instance (must be descendant of U)objectClass - Class of object as expected by security provideranObject - Custom object to propagate to security providerpublic EndpointConfig.Builder customObjects(ClassToInstanceStore<Object> customObjects)
customObjects - Class to its instance map of custom objectscustomObject(Class, Object)public EndpointConfig.Builder config(String configKey, Config configuration)
configKey - key this configuration is stored underconfiguration - configuration stored under the key, as expected by security providerpublic EndpointConfig.Builder configMap(Map<String,Config> configMap)
configMap - map of configurationspublic EndpointConfig.Builder annotations(EndpointConfig.AnnotationScope scope, Map<Class<? extends Annotation>,List<Annotation>> annotations)
scope - Annotation scope to add annotations forannotations - Collected annotations based on security provider requirements.public EndpointConfig.Builder addAtribute(String key, Object value)
key - name of the attribute as expected by the security providervalue - value of this attributeCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.