Class X509CertificateGenerationParameters

    • 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

      • 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.