public static final class EndpointConfig.Builder extends java.lang.Object implements Builder<EndpointConfig>
EndpointConfig.| Modifier and Type | Method and Description |
|---|---|
EndpointConfig.Builder |
addAtribute(java.lang.String key,
java.lang.Object value)
Add an attribute to this endpoint configuration builder.
|
EndpointConfig.Builder |
annotations(EndpointConfig.AnnotationScope scope,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.List<java.lang.annotation.Annotation>> annotations)
Add annotations of a specific scope to this request builder.
|
EndpointConfig |
build()
Build the instance from this builder.
|
EndpointConfig.Builder |
config(java.lang.String configKey,
Config configuration)
Provide a configuration for provider to use.
|
EndpointConfig.Builder |
configMap(java.util.Map<java.lang.String,Config> configMap)
Provider a map of cofiguration keys to configurations for provider(s) to use.
|
<U,V extends U> |
customObject(java.lang.Class<U> objectClass,
V anObject)
Set or replace a custom object.
|
EndpointConfig.Builder |
customObjects(ClassToInstanceStore<java.lang.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(java.lang.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<java.lang.Object> customObjects)
customObjects - Class to its instance map of custom objectscustomObject(Class, Object)public EndpointConfig.Builder config(java.lang.String configKey, Config configuration)
configKey - key this configuration is stored underconfiguration - configuration stored under the key, as expected by security providerpublic EndpointConfig.Builder configMap(java.util.Map<java.lang.String,Config> configMap)
configMap - map of configurationspublic EndpointConfig.Builder annotations(EndpointConfig.AnnotationScope scope, java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.List<java.lang.annotation.Annotation>> annotations)
scope - Annotation scope to add annotations forannotations - Collected annotations based on security provider requirements.public EndpointConfig.Builder addAtribute(java.lang.String key, java.lang.Object value)
key - name of the attribute as expected by the security providervalue - value of this attributeCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.