Class CertificateCreateStartParams.Builder
- java.lang.Object
-
- de.xima.fc.certificate.gui.create.CertificateCreateStartParams.Builder
-
- Enclosing class:
- CertificateCreateStartParams
public static class CertificateCreateStartParams.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificateCreateStartParamsbuild()CertificateCreateStartParams.BuildercreateResultCallback(Consumer<Boolean> createResultCallback)A callback that will be invoked when the certificate creation process is completed.CertificateCreateStartParams.BuilderemailAddressOptions(Set<String> emailAddressOptions)A set of email addresses that can be used as options for the email address field in the certificate creation dialog.CertificateCreateStartParams.Builderissuer(X501DistinguishedName issuer)The distinguished name of the issuer for the certificate to be created.CertificateCreateStartParams.BuilderkeyStoreScope(KeyStoreScope keyStoreScope)The keystore scope in which the certificate should be created.CertificateCreateStartParams.BuilderkeyStoreSelectionDisabled(boolean keyStoreSelectionDisabled)Indicates whether the user should be allowed to select a different keystore during the creation process.StringtoString()
-
-
-
Method Detail
-
keyStoreScope
public CertificateCreateStartParams.Builder keyStoreScope(KeyStoreScope keyStoreScope)
The keystore scope in which the certificate should be created.- Returns:
this.
-
createResultCallback
public CertificateCreateStartParams.Builder createResultCallback(Consumer<Boolean> createResultCallback)
A callback that will be invoked when the certificate creation process is completed. The Boolean parameter indicates whether the creation was successful.- Returns:
this.
-
keyStoreSelectionDisabled
public CertificateCreateStartParams.Builder keyStoreSelectionDisabled(boolean keyStoreSelectionDisabled)
Indicates whether the user should be allowed to select a different keystore during the creation process. Iftrue, the keystore selection will be disabled and the creation will proceed with the default or provided keystore. Iffalse, the user will be able to choose from available keystores.- Returns:
this.
-
issuer
public CertificateCreateStartParams.Builder issuer(X501DistinguishedName issuer)
The distinguished name of the issuer for the certificate to be created. This will be prefilled in the creation dialog. Ifnull, no prefill will be done and an issuer must be selected by the user.- Returns:
this.
-
emailAddressOptions
public CertificateCreateStartParams.Builder emailAddressOptions(Set<String> emailAddressOptions)
A set of email addresses that can be used as options for the email address field in the certificate creation dialog. This can help users by providing their email addresses as selectable options. Ifnullor an empty set, no suggestions will be provided.- Returns:
this.
-
build
public CertificateCreateStartParams build()
-
-