Class Certificate.Builder

  • Enclosing class:
    Certificate

    public static class Certificate.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public Certificate.Builder compartmentId​(String compartmentId)
        The OCID of the certificate’s compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public Certificate.Builder displayName​(String displayName)
        The user-friendly name of the certificate.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • serialNumber

        public Certificate.Builder serialNumber​(String serialNumber)
        A unique, positive integer assigned by the Certificate Authority (CA).

        The issuer name and serial number identify a unique certificate.

        Parameters:
        serialNumber - the value to set
        Returns:
        this builder
      • version

        public Certificate.Builder version​(Integer version)
        The version of the encoded certificate.
        Parameters:
        version - the value to set
        Returns:
        this builder
      • signatureAlgorithm

        public Certificate.Builder signatureAlgorithm​(String signatureAlgorithm)
        The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
        Parameters:
        signatureAlgorithm - the value to set
        Returns:
        this builder
      • timeNotValidBefore

        public Certificate.Builder timeNotValidBefore​(Date timeNotValidBefore)
        The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
        Parameters:
        timeNotValidBefore - the value to set
        Returns:
        this builder
      • timeNotValidAfter

        public Certificate.Builder timeNotValidAfter​(Date timeNotValidAfter)
        The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
        Parameters:
        timeNotValidAfter - the value to set
        Returns:
        this builder
      • extensions

        public Certificate.Builder extensions​(List<Certificate_extensions> extensions)
        Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
        Parameters:
        extensions - the value to set
        Returns:
        this builder
      • freeformTags

        public Certificate.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags for this resource.

        Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

        Example: {"Department": "Finance"}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public Certificate.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

        Example: {"Operations": {"CostCenter": "42"}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • lifecycleState

        public Certificate.Builder lifecycleState​(LifecycleStates lifecycleState)
        The current lifecycle state of the SSL certificate.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • timeCreated

        public Certificate.Builder timeCreated​(Date timeCreated)
        The date and time the certificate was created, expressed in RFC 3339 timestamp format.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • isTrustVerificationDisabled

        public Certificate.Builder isTrustVerificationDisabled​(Boolean isTrustVerificationDisabled)
        This indicates whether trust verification was disabled during the creation of SSL certificate.

        If true SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed.

        Parameters:
        isTrustVerificationDisabled - the value to set
        Returns:
        this builder
      • certificateData

        public Certificate.Builder certificateData​(String certificateData)
        The data of the SSL certificate.
        Parameters:
        certificateData - the value to set
        Returns:
        this builder