Package de.xima.fc.certificate.mgmt.cert
Class CertificateGenerationSpec
- java.lang.Object
-
- de.xima.fc.certificate.mgmt.cert.CertificateGenerationSpec
-
- All Implemented Interfaces:
Serializable
public final class CertificateGenerationSpec extends Object implements Serializable
Specification bundling all parameters required to generate a new certificate. This is passed toCertificateManagementService.generateCertificate(CertificateGenerationSpec, de.xima.fc.certificate.mgmt.CertificateManagementUser)instead of a long list of individual parameters.- Since:
- 8.6.0
- Author:
- Norman Lorenz
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCertificateGenerationSpec.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertificateGenerationSpec.Builderbuilder()booleanequals(Object o)X501DistinguishedNamegetCertificateSubject()The subject information for the certificate.List<ICertificateUsageSpecification>getCertificateUsageSpecifications()The (optional) usage specifications the certificate will be used for (e.g.DurationgetCertificateValidity()The validity period of the certificate.StringgetDescription()An optional free-text description of the certificate, e.g. a note about the system(s) the certificate is used for.IKeyPairGenerationSpecgetKeyPairGenerationSpec()The specifications for generating the key pair, including the algorithm and algorithm-specific settings.KeyStoreSelectorgetKeyStoreSelector()The keystore selector, defining the keystore where the key pair will be stored.LonggetSigningAuthorityId()The ID of the signing authority that will sign the certificate.inthashCode()booleanisAutoRenew()Whether the certificate should be automatically renewed before it expires.CertificateGenerationSpec.BuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static CertificateGenerationSpec.Builder builder()
-
toBuilder
public CertificateGenerationSpec.Builder toBuilder()
-
getCertificateSubject
public X501DistinguishedName getCertificateSubject()
The subject information for the certificate.
-
getCertificateValidity
public Duration getCertificateValidity()
The validity period of the certificate.
-
getKeyPairGenerationSpec
public IKeyPairGenerationSpec getKeyPairGenerationSpec()
The specifications for generating the key pair, including the algorithm and algorithm-specific settings.
-
getCertificateUsageSpecifications
public List<ICertificateUsageSpecification> getCertificateUsageSpecifications()
The (optional) usage specifications the certificate will be used for (e.g. SMIME certificate with email addresses). May benullor empty.
-
getSigningAuthorityId
public Long getSigningAuthorityId()
The ID of the signing authority that will sign the certificate. Ifnull, a self-signed certificate is generated.
-
getKeyStoreSelector
public KeyStoreSelector getKeyStoreSelector()
The keystore selector, defining the keystore where the key pair will be stored.
-
isAutoRenew
public boolean isAutoRenew()
Whether the certificate should be automatically renewed before it expires.
-
getDescription
public String getDescription()
An optional free-text description of the certificate, e.g. a note about the system(s) the certificate is used for. May benull.
-
-