Class SocketConnectionTestParams
- java.lang.Object
-
- de.xima.fc.certificate.gui.trust_prompt.SocketConnectionTestParams
-
public final class SocketConnectionTestParams extends Object
Parameters for testing a socket connection to a specified host and port. This class encapsulates the necessary data and optional callbacks for handling the result of the connection test, including any certificate import operations if needed.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSocketConnectionTestParams.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SocketConnectionTestParams.Builderbuilder(String host, int port)booleanequals(Object o)StringgetHost()The host name or IP address of the server to connect to.Consumer<FileImportResult>getImportResultCallback()Optional.KeyStoreScopegetKeyStoreScope()Optional.KeyStoreSelectorgetKeyStoreSelector()Optional.intgetPort()The port number of the server to connect to.inthashCode()SocketConnectionTestParams.BuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static SocketConnectionTestParams.Builder builder(String host, int port)
-
toBuilder
public SocketConnectionTestParams.Builder toBuilder()
-
getHost
public String getHost()
The host name or IP address of the server to connect to.
-
getPort
public int getPort()
The port number of the server to connect to.
-
getImportResultCallback
public Consumer<FileImportResult> getImportResultCallback()
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.
-
getKeyStoreScope
public KeyStoreScope getKeyStoreScope()
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.
-
getKeyStoreSelector
public KeyStoreSelector getKeyStoreSelector()
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.
-
-