T - Type of the builder, used to enable extensibility of this builderpublic class SecurityRequestBuilder<T extends SecurityRequestBuilder>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
SecurityRequest |
buildRequest()
Build the security request.
|
T |
explicitProvider(java.lang.String providerName)
Use an explicit provider.
|
T |
object(java.lang.Object resource)
Put object to this request.
|
T |
object(java.lang.String key,
java.lang.Object object)
Bind object to a specific name.
|
T |
object(java.lang.String key,
java.util.function.Supplier<java.lang.Object> object)
Bind object supplier to a specific name.
|
T |
object(java.util.function.Supplier<java.lang.Object> resource)
Put object supplier to this request.
|
T |
optional(boolean optional)
Set that security is optional.
|
T |
requestMessage(Entity entity)
Set the request message to use when security provider requires access to it.
|
T |
responseMessage(Entity entity)
Set the response message to use when security provider requires access to it.
|
T |
tracingSpan(Span span)
Tracing span to support Open tracing.
|
public T object(java.lang.Object resource)
resource - resource instance to be available to security providerpublic T object(java.util.function.Supplier<java.lang.Object> resource)
resource - supplier of resource instance to be available to security providerpublic T object(java.lang.String key, java.lang.Object object)
object(sourceInstance) to bind the "object" part of the statement and
object("target", targetInstance) to bind the "target" part of the statementkey - key to bind this object underobject - resource instancepublic T object(java.lang.String key, java.util.function.Supplier<java.lang.Object> object)
object(sourceInstance) to bind the "object" part of the statement and
object("target", targetInstance) to bind the "target" part of the statementkey - key to bind this object underobject - supplier of resource instancepublic T tracingSpan(Span span)
span - span of current security request (e.g. authentication, authorization or outbound)GlobalTracer.get(),
Tracer.buildSpan(String)public T explicitProvider(java.lang.String providerName)
providerName - Name of a configured SecurityProviderpublic T optional(boolean optional)
optional - set to true to make this security request optionalpublic T requestMessage(Entity entity)
entity - Message to use, may be null (e.g. for requests without entity)public T responseMessage(Entity entity)
entity - Message to use, may be null (e.g. for responses without entity)public SecurityRequest buildRequest()
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.