Package org.jboss.as.controller.client
Class ModelControllerClientConfiguration.Builder
java.lang.Object
org.jboss.as.controller.client.ModelControllerClientConfiguration.Builder
- Enclosing interface:
- ModelControllerClientConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration object based on this builder's settings.setAuthenticationConfigUri(URI authConfigUri) Deprecated.setClientBindAddress(String clientBindAddress) Sets the local address to which the client socket should be bound.setConnectionTimeout(int connectionTimeout) Maximum time, in milliseconds, to wait for the connection to be establishedsetHandler(CallbackHandler handler) Sets the handler for callbacks to obtain authentication information.setHostName(String hostName) Sets the remote host name to which the client should connect.setPort(int port) Sets the remote port to which the client should connectsetProtocol(String protocol) Sets the protocol to use for communicating with the remote process.setSaslOptions(Map<String, String> saslOptions) Sets the SASL options for the remote connectionsetSslContext(SSLContext sslContext) Sets the SSL context for the remote connectionsetSslContextFactory(SecurityFactory<SSLContext> sslContextFactory) Sets the SSLContext factory to obtain the SSLContext from for the remote connection
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setHostName
Sets the remote host name to which the client should connect.- Parameters:
hostName- the host name. Cannot benull- Returns:
- a builder to allow continued configuration
-
setClientBindAddress
Sets the local address to which the client socket should be bound.- Parameters:
clientBindAddress- the local address, ornullto choose one automatically- Returns:
- a builder to allow continued configuration
-
setPort
Sets the remote port to which the client should connect- Parameters:
port- the port- Returns:
- a builder to allow continued configuration
-
setHandler
Sets the handler for callbacks to obtain authentication information.- Parameters:
handler- the handler, ornullif callbacks are not supported.- Returns:
- a builder to allow continued configuration
-
setSaslOptions
Sets the SASL options for the remote connection- Parameters:
saslOptions- the sasl options- Returns:
- a builder to allow continued configuration
-
setSslContext
Sets the SSL context for the remote connection- Parameters:
sslContext- the SSL context- Returns:
- a builder to allow continued configuration
-
setSslContextFactory
public ModelControllerClientConfiguration.Builder setSslContextFactory(SecurityFactory<SSLContext> sslContextFactory) Sets the SSLContext factory to obtain the SSLContext from for the remote connection- Parameters:
sslContextFactory- the SSLContext factory- Returns:
- a builder to allow continued configuration
-
setProtocol
Sets the protocol to use for communicating with the remote process.- Parameters:
protocol- the protocol, ornullif a default protocol for thespecified portshould be used- Returns:
- a builder to allow continued configuration
-
setConnectionTimeout
Maximum time, in milliseconds, to wait for the connection to be established- Parameters:
connectionTimeout- the timeout- Returns:
- a builder to allow continued configuration
-
setAuthenticationConfigUri
@Deprecated public ModelControllerClientConfiguration.Builder setAuthenticationConfigUri(URI authConfigUri) Deprecated.this may be removed in a future release in favor of creating anAuthenticationContextand using aContextualModelControllerClientSet the location of the authentication configuration file.- Parameters:
authConfigUri- the location to the authentication configuration file ornullto use auto discovery- Returns:
- a builder to allow continued configuration
-
build
Builds the configuration object based on this builder's settings.- Returns:
- the configuration
-
AuthenticationContextand using aContextualModelControllerClient