Class SelfSignedCertificate.Builder

    • Method Detail

      • fqdn

        public SelfSignedCertificate.Builder fqdn​(String fqdn)
        Set the fully-qualified domain name of the certificate that should be generated.
        Parameters:
        fqdn - The FQDN
        Returns:
        This builder
      • random

        public SelfSignedCertificate.Builder random​(SecureRandom random)
        Set the RNG to use for key generation. This setting is not supported by the keytool-based generator.
        Parameters:
        random - The CSPRNG
        Returns:
        This builder
      • notBefore

        public SelfSignedCertificate.Builder notBefore​(Date notBefore)
        Set the start of the certificate validity period.
        Parameters:
        notBefore - The start date
        Returns:
        This builder
      • notAfter

        public SelfSignedCertificate.Builder notAfter​(Date notAfter)
        Set the end of the certificate validity period.
        Parameters:
        notAfter - The start date
        Returns:
        This builder
      • algorithm

        public SelfSignedCertificate.Builder algorithm​(String algorithm)
        Set the key algorithm. Only RSA and EC are supported.
        Parameters:
        algorithm - The key algorithm
        Returns:
        This builder