T - Type of the builder, used to enable extensibility of this builderpublic class SecurityRequestBuilder<T extends SecurityRequestBuilder<T>> extends Object
| Modifier and Type | Method and Description |
|---|---|
SecurityRequest |
buildRequest()
Build the security request.
|
T |
explicitProvider(String providerName)
Use an explicit provider.
|
T |
object(Object resource)
Put object to this request.
|
T |
object(String key,
Object object)
Bind object to a specific name.
|
T |
object(String key,
Supplier<Object> object)
Bind object supplier to a specific name.
|
T |
object(Supplier<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(Object resource)
resource - resource instance to be available to security providerpublic T object(Supplier<Object> resource)
resource - supplier of resource instance to be available to security providerpublic T object(String key, 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(String key, Supplier<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(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–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.