org.xwiki.crypto.pkix.params.x509certificate
Class X509CertificateGenerationParameters

java.lang.Object
  extended by org.xwiki.crypto.pkix.params.x509certificate.X509CertificateGenerationParameters
All Implemented Interfaces:
CertificateGenerationParameters

@Unstable
public class X509CertificateGenerationParameters
extends Object
implements CertificateGenerationParameters

X.509 common certificate parameters.

Since:
5.4
Version:
$Id: 89d4a8083bd9bc1552f06287f8ab2d5068e2a87b $

Nested Class Summary
static class X509CertificateGenerationParameters.Version
          X.509 version.
 
Constructor Summary
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(X509CertificateGenerationParameters.Version version, int validity, X509Extensions extensions)
          Create a new instance with the given arguments.
X509CertificateGenerationParameters(X509Extensions extensions)
          Create a new instance with the given arguments.
 
Method Summary
 X509Extensions getExtensions()
           
 int getValidity()
           
 X509CertificateGenerationParameters.Version getX509Version()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2004–2014 XWiki. All rights reserved.