Class SslConnectionTestParams

java.lang.Object
de.xima.fc.certificate.gui.trust_prompt.SslConnectionTestParams

public final class SslConnectionTestParams extends Object
Since:
16.09.25
Author:
Norman Lorenz
  • Method Details

    • builder

      public static SslConnectionTestParams.Builder builder(Function<SSLContext, Boolean> sslContextConsumer)
    • toBuilder

      public SslConnectionTestParams.Builder toBuilder()
    • getImportResultCallback

      public Consumer<FileImportResult> getImportResultCallback()
      Optional. 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. Scope for which the connection test is executed, such as whether it is client or system scope. This is used to determine the SSLContext. 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.
    • getSslContextConsumer

      public Function<SSLContext, Boolean> getSslContextConsumer()
      Function that will be used to test the connection using the provided SSLContext. The function should return true if the connection test is successful, otherwise false.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object