public static class SecurityContext.Builder extends Object implements Builder<SecurityContext>
SecurityContext.| Modifier and Type | Method and Description |
|---|---|
SecurityContext |
build()
Build the instance from this builder.
|
SecurityContext.Builder |
endpointConfig(EndpointConfig ec)
Set the endpoint configuration to start with.
|
SecurityContext.Builder |
env(SecurityEnvironment env)
Set the security environment to start with.
|
SecurityContext.Builder |
executorService(ExecutorService executorService)
Executor service to use for requests within this context.
|
SecurityContext.Builder |
executorService(Supplier<ExecutorService> executorServiceSupplier)
Executor service to use for requests within this context.
|
SecurityContext.Builder |
id(String id)
Id of the new security context.
|
SecurityContext.Builder |
serverTime(SecurityTime serverTime)
SecurityTime to use when determining current time.
|
SecurityContext.Builder |
tracingSpan(SpanContext tracingSpan)
Open tracing span context to correctly trace security.
|
SecurityContext.Builder |
tracingTracer(Tracer tracingTracer)
Tracer used to create new span contexts when tracing security events.
|
public SecurityContext build()
Builderbuild in interface Builder<SecurityContext>public SecurityContext.Builder id(String id)
Use this method only if you need to override default behavior!
id - id to use, by default this used security UUID post-fixed by id you gave
to Security.contextBuilder(String)public SecurityContext.Builder executorService(Supplier<ExecutorService> executorServiceSupplier)
Security instance.
Use this method only if you need to override default behavior!
executorServiceSupplier - supplier of an executor servicepublic SecurityContext.Builder executorService(ExecutorService executorService)
Security instance.
Use this method only if you need to override default behavior!
executorService - executor servicepublic SecurityContext.Builder serverTime(SecurityTime serverTime)
SecurityEnvironment.
By default uses server time that is configured for Security instance
Use this method only if you need to override default behavior!
serverTime - the server time to usepublic SecurityContext.Builder tracingTracer(Tracer tracingTracer)
Security instance.
Use this method only if you need to override default behavior!
tracingTracer - tracer to usepublic SecurityContext.Builder tracingSpan(SpanContext tracingSpan)
tracingSpan - Open tracing span context of the request within which we create this security contextpublic SecurityContext.Builder env(SecurityEnvironment env)
env - environment to use for security requestspublic SecurityContext.Builder endpointConfig(EndpointConfig ec)
ec - configuration specific to an endpoint (including annotations, custom objects etc.)Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.