Class ValidationServiceClientBuilder
java.lang.Object
ch.admin.suis.client.core.service.ValidationServiceClientBuilder
A builder for creating an implementation object for the
IValidationServiceClient interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract IValidationServiceClientbuild()Build a new validation service client instance using all the configuration previously specified in this builder.abstract ValidationServiceClientBuildercredential(de.intarsys.aaa.authenticate.impl.UserPasswordCredential credential) Sets the credential to use when the service requires basic authentication.abstract ValidationServiceClientBuilderproxyCredential(de.intarsys.aaa.authenticate.impl.UserPasswordCredential proxyCredential) Sets the credential to use when configured proxy requires basic authentication.abstract ValidationServiceClientBuilderSets the name of a proxy server to use when contacting the validation service.abstract ValidationServiceClientBuilderproxyPort(int proxyPort) Sets the port of a proxy server to use when contacting the validation service.abstract ValidationServiceClientBuilderserviceUrl(String serviceUrl) Sets the URL of the validation service.abstract ValidationServiceClientBuildersslContext(SSLContext sslContext) Sets anSSLContextto use when contacting the validation service.abstract ValidationServiceClientBuilderwireLogging(boolean wireLogging) Sets a flag specifying whether to dump the request and response payload atINFOlog level.
-
Constructor Details
-
ValidationServiceClientBuilder
public ValidationServiceClientBuilder()
-
-
Method Details
-
newBuilder
-
build
Build a new validation service client instance using all the configuration previously specified in this builder.- Returns:
- a new validation service client instance.
-
credential
public abstract ValidationServiceClientBuilder credential(de.intarsys.aaa.authenticate.impl.UserPasswordCredential credential) Sets the credential to use when the service requires basic authentication.- Parameters:
credential- the credential to use- Returns:
- an updated builder instance
-
proxyCredential
public abstract ValidationServiceClientBuilder proxyCredential(de.intarsys.aaa.authenticate.impl.UserPasswordCredential proxyCredential) Sets the credential to use when configured proxy requires basic authentication.- Parameters:
proxyCredential- the proxy credential to use- Returns:
- an updated builder instance
-
proxyHost
Sets the name of a proxy server to use when contacting the validation service.- Parameters:
proxyHost- the name of the proxy server- Returns:
- an updated builder instance
-
proxyPort
Sets the port of a proxy server to use when contacting the validation service.- Parameters:
proxyPort- the port at which the proxy server is listening- Returns:
- an updated builder instance
-
serviceUrl
Sets the URL of the validation service. This configuration item is required.- Parameters:
serviceUrl- the URL of the validation service- Returns:
- an updated builder instance
-
sslContext
Sets anSSLContextto use when contacting the validation service.- Parameters:
sslContext- theSSLContextto use- Returns:
- an updated builder instance
-
wireLogging
Sets a flag specifying whether to dump the request and response payload atINFOlog level.- Parameters:
wireLogging- theSSLContextto use- Returns:
- an updated builder instance
-