Class Certificate.Builder

  • Enclosing class:
    Certificate

    public static class Certificate.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • key

        public Certificate.Builder key​(String key)
        The identifier key (unique name in the scope of the deployment) of the certificate being referenced.

        It must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter.

        Parameters:
        key - the value to set
        Returns:
        this builder
      • deploymentId

        public Certificate.Builder deploymentId​(String deploymentId)
        The OCID of the deployment being referenced.
        Parameters:
        deploymentId - the value to set
        Returns:
        this builder
      • certificateContent

        public Certificate.Builder certificateContent​(String certificateContent)
        The base64 encoded content of the PEM file containing the SSL certificate.
        Parameters:
        certificateContent - the value to set
        Returns:
        this builder
      • issuer

        public Certificate.Builder issuer​(String issuer)
        The Certificate issuer.
        Parameters:
        issuer - the value to set
        Returns:
        this builder
      • isSelfSigned

        public Certificate.Builder isSelfSigned​(Boolean isSelfSigned)
        Indicates if the certificate is self signed.
        Parameters:
        isSelfSigned - the value to set
        Returns:
        this builder
      • md5Hash

        public Certificate.Builder md5Hash​(String md5Hash)
        The Certificate md5Hash.
        Parameters:
        md5Hash - the value to set
        Returns:
        this builder
      • publicKey

        public Certificate.Builder publicKey​(String publicKey)
        The Certificate public key.
        Parameters:
        publicKey - the value to set
        Returns:
        this builder
      • publicKeyAlgorithm

        public Certificate.Builder publicKeyAlgorithm​(String publicKeyAlgorithm)
        The Certificate public key algorithm.
        Parameters:
        publicKeyAlgorithm - the value to set
        Returns:
        this builder
      • publicKeySize

        public Certificate.Builder publicKeySize​(Long publicKeySize)
        The Certificate public key size.
        Parameters:
        publicKeySize - the value to set
        Returns:
        this builder
      • serial

        public Certificate.Builder serial​(String serial)
        The Certificate serial.
        Parameters:
        serial - the value to set
        Returns:
        this builder
      • subject

        public Certificate.Builder subject​(String subject)
        The Certificate subject.
        Parameters:
        subject - the value to set
        Returns:
        this builder
      • timeValidFrom

        public Certificate.Builder timeValidFrom​(Date timeValidFrom)
        The time the certificate is valid from.

        The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

        Parameters:
        timeValidFrom - the value to set
        Returns:
        this builder
      • timeValidTo

        public Certificate.Builder timeValidTo​(Date timeValidTo)
        The time the certificate is valid to.

        The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

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

        public Certificate.Builder version​(String version)
        The Certificate version.
        Parameters:
        version - the value to set
        Returns:
        this builder
      • sha1Hash

        public Certificate.Builder sha1Hash​(String sha1Hash)
        The Certificate sha1 hash.
        Parameters:
        sha1Hash - the value to set
        Returns:
        this builder
      • authorityKeyId

        public Certificate.Builder authorityKeyId​(String authorityKeyId)
        The Certificate authority key id.
        Parameters:
        authorityKeyId - the value to set
        Returns:
        this builder
      • isCa

        public Certificate.Builder isCa​(Boolean isCa)
        Indicates if the certificate is ca.
        Parameters:
        isCa - the value to set
        Returns:
        this builder
      • subjectKeyId

        public Certificate.Builder subjectKeyId​(String subjectKeyId)
        The Certificate subject key id.
        Parameters:
        subjectKeyId - the value to set
        Returns:
        this builder
      • timeCreated

        public Certificate.Builder timeCreated​(Date timeCreated)
        The time the resource was created.

        The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder