Class X509CertificateGenerationParameters
- java.lang.Object
-
- org.xwiki.crypto.pkix.params.x509certificate.X509CertificateGenerationParameters
-
- All Implemented Interfaces:
CertificateGenerationParameters
public class X509CertificateGenerationParameters extends Object implements CertificateGenerationParameters
X.509 common certificate parameters.- Since:
- 5.4
- Version:
- $Id: 700762a5ce6c20700370aea5c7be3d23ba0612b8 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
X509CertificateGenerationParameters.Version
X.509 version.
-
Constructor Summary
Constructors Constructor Description X509CertificateGenerationParameters()
Create a new instance with the default parameters.X509CertificateGenerationParameters(int validity)
Create a new instance with the given arguments.X509CertificateGenerationParameters(int validity, X509Extensions extensions)
Create a new instance with the given arguments.X509CertificateGenerationParameters(X509Extensions extensions)
Create a new instance with the given arguments.X509CertificateGenerationParameters(X509CertificateGenerationParameters.Version version, int validity, X509Extensions extensions)
Create a new instance with the given arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509Extensions
getExtensions()
int
getValidity()
X509CertificateGenerationParameters.Version
getX509Version()
-
-
-
Constructor Detail
-
X509CertificateGenerationParameters
public X509CertificateGenerationParameters()
Create a new instance with the default parameters. The default certificate version will be V1. The default validity will be 500 days.
-
X509CertificateGenerationParameters
public X509CertificateGenerationParameters(X509Extensions extensions)
Create a new instance with the given arguments. The default certificate version will be V3. The default validity will be 500 days.- Parameters:
extensions
- the common v3 certificate extensions for all certificate issued by a generator, or null for none.
-
X509CertificateGenerationParameters
public X509CertificateGenerationParameters(int validity)
Create a new instance with the given arguments. The default certificate version will be V1.- Parameters:
validity
- the validity period in days from the time of issuance.
-
X509CertificateGenerationParameters
public X509CertificateGenerationParameters(int validity, X509Extensions extensions)
Create a new instance with the given arguments. The default certificate version will be V3.- Parameters:
validity
- the validity period in days from the time of issuance.extensions
- the common v3 certificate extensions for all certificate issued by a generator, or null for none.
-
X509CertificateGenerationParameters
public X509CertificateGenerationParameters(X509CertificateGenerationParameters.Version version, int validity, X509Extensions extensions)
Create a new instance with the given arguments.- Parameters:
version
- the X.509 version of certificate to create.validity
- the validity period in days from the time of issuance.extensions
- the common v3 certificate extensions for all certificate issued by a generator, or null for none.
-
-
Method Detail
-
getX509Version
public X509CertificateGenerationParameters.Version getX509Version()
- Returns:
- the X.509 version of the certificate to generate.
-
getValidity
public int getValidity()
- Returns:
- the validity period in days from the time of issuance.
-
getExtensions
public X509Extensions getExtensions()
- Returns:
- the common v3 certificate extensions for all certificate issued by a generator, or null for none.
-
-