Class SslConnectionTestParams.Builder
- java.lang.Object
-
- de.xima.fc.certificate.gui.trust_prompt.SslConnectionTestParams.Builder
-
- Enclosing class:
- SslConnectionTestParams
public static class SslConnectionTestParams.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SslConnectionTestParamsbuild()SslConnectionTestParams.BuilderimportResultCallback(Consumer<FileImportResult> importResultCallback)Optional.SslConnectionTestParams.BuilderkeyStoreScope(KeyStoreScope keyStoreScope)Optional.SslConnectionTestParams.BuilderkeyStoreSelector(KeyStoreSelector keyStoreSelector)Optional.SslConnectionTestParams.BuildersslContextConsumer(Function<SSLContext,Boolean> sslContextConsumer)Function that will be used to test the connection using the providedSSLContext.StringtoString()
-
-
-
Method Detail
-
importResultCallback
public SslConnectionTestParams.Builder importResultCallback(Consumer<FileImportResult> importResultCallback)
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.- Returns:
this.
-
keyStoreScope
public SslConnectionTestParams.Builder keyStoreScope(KeyStoreScope keyStoreScope)
Optional. 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
public SslConnectionTestParams.Builder keyStoreSelector(KeyStoreSelector 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.
-
sslContextConsumer
public SslConnectionTestParams.Builder sslContextConsumer(Function<SSLContext,Boolean> sslContextConsumer)
Function that will be used to test the connection using the providedSSLContext. The function should returntrueif the connection test is successful, otherwisefalse.- Returns:
this.
-
build
public SslConnectionTestParams build()
-
-