Package de.xima.fc.certificate.mgmt.cert
Class CertificateGenerationSpec.Builder
- java.lang.Object
-
- de.xima.fc.certificate.mgmt.cert.CertificateGenerationSpec.Builder
-
- Enclosing class:
- CertificateGenerationSpec
public static class CertificateGenerationSpec.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificateGenerationSpec.BuilderautoRenew(boolean autoRenew)Whether the certificate should be automatically renewed before it expires.CertificateGenerationSpecbuild()CertificateGenerationSpec.BuildercertificateSubject(X501DistinguishedName certificateSubject)The subject information for the certificate.CertificateGenerationSpec.BuildercertificateUsageSpecifications(List<ICertificateUsageSpecification> certificateUsageSpecifications)The (optional) usage specifications the certificate will be used for (e.g.CertificateGenerationSpec.BuildercertificateValidity(Duration certificateValidity)The validity period of the certificate.CertificateGenerationSpec.Builderdescription(String description)An optional free-text description of the certificate, e.g. a note about the system(s) the certificate is used for.CertificateGenerationSpec.BuilderkeyPairGenerationSpec(IKeyPairGenerationSpec keyPairGenerationSpec)The specifications for generating the key pair, including the algorithm and algorithm-specific settings.CertificateGenerationSpec.BuilderkeyStoreSelector(KeyStoreSelector keyStoreSelector)The keystore selector, defining the keystore where the key pair will be stored.CertificateGenerationSpec.BuildersigningAuthorityId(Long signingAuthorityId)The ID of the signing authority that will sign the certificate.StringtoString()
-
-
-
Method Detail
-
certificateSubject
public CertificateGenerationSpec.Builder certificateSubject(X501DistinguishedName certificateSubject)
The subject information for the certificate.- Returns:
this.
-
certificateValidity
public CertificateGenerationSpec.Builder certificateValidity(Duration certificateValidity)
The validity period of the certificate.- Returns:
this.
-
keyPairGenerationSpec
public CertificateGenerationSpec.Builder keyPairGenerationSpec(IKeyPairGenerationSpec keyPairGenerationSpec)
The specifications for generating the key pair, including the algorithm and algorithm-specific settings.- Returns:
this.
-
certificateUsageSpecifications
public CertificateGenerationSpec.Builder certificateUsageSpecifications(List<ICertificateUsageSpecification> certificateUsageSpecifications)
The (optional) usage specifications the certificate will be used for (e.g. SMIME certificate with email addresses). May benullor empty.- Returns:
this.
-
signingAuthorityId
public CertificateGenerationSpec.Builder signingAuthorityId(Long signingAuthorityId)
The ID of the signing authority that will sign the certificate. Ifnull, a self-signed certificate is generated.- Returns:
this.
-
keyStoreSelector
public CertificateGenerationSpec.Builder keyStoreSelector(KeyStoreSelector keyStoreSelector)
The keystore selector, defining the keystore where the key pair will be stored.- Returns:
this.
-
autoRenew
public CertificateGenerationSpec.Builder autoRenew(boolean autoRenew)
Whether the certificate should be automatically renewed before it expires.- Returns:
this.
-
description
public CertificateGenerationSpec.Builder description(String description)
An optional free-text description of the certificate, e.g. a note about the system(s) the certificate is used for. May benull.- Returns:
this.
-
build
public CertificateGenerationSpec build()
-
-