Class OutboundTarget.Builder
java.lang.Object
io.helidon.security.providers.common.OutboundTarget.Builder
- All Implemented Interfaces:
- Builder<OutboundTarget.Builder,,- OutboundTarget> - Supplier<OutboundTarget>
- Enclosing class:
- OutboundTarget
public static final class OutboundTarget.Builder
extends Object
implements Builder<OutboundTarget.Builder,OutboundTarget> 
Fluent API builder for 
OutboundTarget.- 
Method SummaryModifier and TypeMethodDescriptionAdd supported host for this target.Add supported method for this target.Add supported paths for this target.addTransport(String transport) Add supported transports for this target.build()Build aOutboundTargetinstance from this builder.Set config for this target.<U,V extends U> 
 OutboundTarget.BuildercustomObject(Class<U> objectClass, V anObject) Set or replace a custom object.Configure the name of this outbound target.
- 
Method Details- 
nameConfigure the name of this outbound target.- Parameters:
- name- name of the target, cannot be null
- Returns:
- updated builder
 
- 
configSet config for this target. This may be useful if each target requires different provider configuration.- Parameters:
- config- Config object to configure the provider
- Returns:
- update builder instance
 
- 
addHostAdd supported host for this target. May be called more than once to add more hosts.Valid examples: - localhost
- www.google.com
- 127.0.0.1
- *.oracle.com
- 192.169.*.*
- *.google.*
 - Parameters:
- host- name or IP of host, with possible "*" asterisk character to match any sequence
- Returns:
- updated builder instance
 
- 
addTransportAdd supported transports for this target. May be called more than once to add more transports.Valid examples: - http
- https
 - Parameters:
- transport- that is supported
- Returns:
- updated builder instance
 
- 
addPathAdd supported paths for this target. May be called more than once to add more paths. The path is tested as is against called path, and also tested as a regular expression.- Parameters:
- path- supported path (regular expression supported)
- Returns:
- updated builder instance
 
- 
addMethodAdd supported method for this target. May be called more than once to add more methods. The method is tested as is ignoring case against the used method.- Parameters:
- method- supported method (exact match ignoring case)
- Returns:
- updated builder instance
 
- 
customObjectSet or replace a custom object. This object will be provided to security provider. Objects are stored by class, so we can have multiple objects of different classes (e.g. when using multiple outbound providers). Class of object is defined by security provider.- Type Parameters:
- U- Class of the custom object to be stored. The object instance is available ONLY under this class
- V- Implementation of the class
- Parameters:
- objectClass- Class of object as expected by security provider
- anObject- Custom object to be used by outbound security provider
- Returns:
- updated Builder instance
 
- 
buildBuild aOutboundTargetinstance from this builder.- Specified by:
- buildin interface- Builder<OutboundTarget.Builder,- OutboundTarget> 
- Returns:
- instance configured with this builder values
 
 
-