Class SocketConnectionTestParams.Builder
java.lang.Object
de.xima.fc.certificate.gui.trust_prompt.SocketConnectionTestParams.Builder
- Enclosing class:
SocketConnectionTestParams
- Since:
- 16.09.25
- Author:
- Norman Lorenz
-
Method Summary
Modifier and TypeMethodDescriptionbuild()The host name or IP address of the server to connect to.importResultCallback(Consumer<FileImportResult> importResultCallback) Optional.keyStoreScope(KeyStoreScope keyStoreScope) Optional.keyStoreSelector(KeyStoreSelector keyStoreSelector) Optional.port(int port) The port number of the server to connect to.toString()
-
Method Details
-
host
The host name or IP address of the server to connect to.- Returns:
this.
-
port
The port number of the server to connect to.- Returns:
this.
-
importResultCallback
public SocketConnectionTestParams.Builder importResultCallback(Consumer<FileImportResult> importResultCallback) Optional. A callback that will be invoked with the result of the import process, if a certificate was selected for import. This callback is executed after all necessary steps of the import process have been completed, including any user interactions in the trust prompt dialog.- Returns:
this.
-
keyStoreScope
Optional. The scope for which the connection test is executed, such as whether it is client or system scope. This is used to determine theSSLContext. If not provided, the current scope of the view will be used.- Returns:
this.
-
keyStoreSelector
Optional. A selector for the keystore where the certificate should be imported into. This can be used to preselect the target keystore for the import operation. For example, this can be used to always preselect an "LDAP Certificates" keystore for LDAP connections.- Returns:
this.
-
build
-
toString
-