Reference documentation and code samples for the Google Certificate Authority Service V1 Client class Certificate.
A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority .
Generated from protobuf message google.cloud.security.privateca.v1.Certificate
Namespace
Google \ Cloud \ Security \ PrivateCA \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The resource name for this Certificate
in the format projects/*/locations/*/caPools/*/certificates/*
.
↳ pem_csr
string
Immutable. A pem-encoded X.509 certificate signing request (CSR).
↳ config
CertificateConfig
Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
↳ issuer_certificate_authority
string
Output only. The resource name of the issuing CertificateAuthority
in the format projects/*/locations/*/caPools/*/certificateAuthorities/*
.
↳ lifetime
Google\Protobuf\Duration
Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
↳ certificate_template
string
Immutable. The resource name for a CertificateTemplate
used to issue this certificate, in the format projects/*/locations/*/certificateTemplates/*
. If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the Certificate
.
↳ subject_mode
int
Immutable. Specifies how the Certificate
's identity fields are to be decided. If this is omitted, the DEFAULT
subject mode will be used.
↳ revocation_details
Certificate\RevocationDetails
Output only. Details regarding the revocation of this Certificate . This Certificate is considered revoked if and only if this field is present.
↳ pem_certificate
string
Output only. The pem-encoded, signed X.509 certificate.
↳ certificate_description
↳ pem_certificate_chain
array
Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
↳ create_time
↳ update_time
↳ labels
getName
Output only. The resource name for this Certificate
in the format projects/*/locations/*/caPools/*/certificates/*
.
string
setName
Output only. The resource name for this Certificate
in the format projects/*/locations/*/caPools/*/certificates/*
.
var
string
$this
getPemCsr
Immutable. A pem-encoded X.509 certificate signing request (CSR).
string
hasPemCsr
setPemCsr
Immutable. A pem-encoded X.509 certificate signing request (CSR).
var
string
$this
getConfig
Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
hasConfig
setConfig
Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
$this
getIssuerCertificateAuthority
Output only. The resource name of the issuing CertificateAuthority
in the format projects/*/locations/*/caPools/*/certificateAuthorities/*
.
string
setIssuerCertificateAuthority
Output only. The resource name of the issuing CertificateAuthority
in the format projects/*/locations/*/caPools/*/certificateAuthorities/*
.
var
string
$this
getLifetime
Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
hasLifetime
clearLifetime
setLifetime
Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
$this
getCertificateTemplate
Immutable. The resource name for a CertificateTemplate
used to issue this certificate, in the format projects/*/locations/*/certificateTemplates/*
.
If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the Certificate .
string
setCertificateTemplate
Immutable. The resource name for a CertificateTemplate
used to issue this certificate, in the format projects/*/locations/*/certificateTemplates/*
.
If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the Certificate .
var
string
$this
getSubjectMode
Immutable. Specifies how the Certificate
's identity
fields are to be decided. If this is omitted, the DEFAULT
subject mode
will be used.
int
setSubjectMode
Immutable. Specifies how the Certificate
's identity
fields are to be decided. If this is omitted, the DEFAULT
subject mode
will be used.
var
int
$this
getRevocationDetails
Output only. Details regarding the revocation of this Certificate . This Certificate is considered revoked if and only if this field is present.
hasRevocationDetails
clearRevocationDetails
setRevocationDetails
Output only. Details regarding the revocation of this Certificate . This Certificate is considered revoked if and only if this field is present.
$this
getPemCertificate
Output only. The pem-encoded, signed X.509 certificate.
string
setPemCertificate
Output only. The pem-encoded, signed X.509 certificate.
var
string
$this
getCertificateDescription
Output only. A structured description of the issued X.509 certificate.
hasCertificateDescription
clearCertificateDescription
setCertificateDescription
Output only. A structured description of the issued X.509 certificate.
$this
getPemCertificateChain
Output only. The chain that may be used to verify the X.509 certificate.
Expected to be in issuer-to-root order according to RFC 5246.
setPemCertificateChain
Output only. The chain that may be used to verify the X.509 certificate.
Expected to be in issuer-to-root order according to RFC 5246.
var
string[]
$this
getCreateTime
Output only. The time at which this Certificate was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time at which this Certificate was created.
$this
getUpdateTime
Output only. The time at which this Certificate was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time at which this Certificate was updated.
$this
getLabels
Optional. Labels with user-defined metadata.
setLabels
Optional. Labels with user-defined metadata.
$this
getCertificateConfig
string