Reference documentation and code samples for the Google Certificate Authority Service V1 Client class CertificateAuthority.
A
CertificateAuthority
represents an individual Certificate Authority. A
CertificateAuthority
can be used to create
Certificates.
Generated from protobuf message google.cloud.security.privateca.v1.CertificateAuthority
Namespace
Google \ Cloud \ Security \ PrivateCA \ V1
Methods
__construct
| Parameter |
| Name |
Description |
data |
mixed
|
getName
Identifier. The resource name for this
CertificateAuthority
in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.
| Returns |
| Type |
Description |
string |
|
setName
Identifier. The resource name for this
CertificateAuthority
in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getType
| Returns |
| Type |
Description |
int |
Enum of type Type. |
setType
| Parameter |
| Name |
Description |
var |
int
Enum of type Type.
|
| Returns |
| Type |
Description |
$this |
|
getConfig
Required. Immutable. The config used to create a self-signed X.509
certificate or CSR.
hasConfig
clearConfig
setConfig
Required. Immutable. The config used to create a self-signed X.509
certificate or CSR.
| Returns |
| Type |
Description |
$this |
|
getLifetime
Required. Immutable. The desired lifetime of the CA certificate. Used to
create the "not_before_time" and "not_after_time" fields inside an X.509
certificate.
hasLifetime
clearLifetime
setLifetime
Required. Immutable. The desired lifetime of the CA certificate. Used to
create the "not_before_time" and "not_after_time" fields inside an X.509
certificate.
| Returns |
| Type |
Description |
$this |
|
getKeySpec
Required. Immutable. Used when issuing certificates for this
CertificateAuthority.
If this
CertificateAuthority
is a self-signed CertificateAuthority, this key is also used to sign the
self-signed CA certificate. Otherwise, it is used to sign a CSR.
hasKeySpec
clearKeySpec
setKeySpec
Required. Immutable. Used when issuing certificates for this
CertificateAuthority.
If this
CertificateAuthority
is a self-signed CertificateAuthority, this key is also used to sign the
self-signed CA certificate. Otherwise, it is used to sign a CSR.
| Returns |
| Type |
Description |
$this |
|
getSubordinateConfig
Optional. If this is a subordinate
CertificateAuthority,
this field will be set with the subordinate configuration, which describes
its issuers. This may be updated, but this
CertificateAuthority
must continue to validate.
| Returns |
| Type |
Description |
SubordinateConfig|null |
|
hasSubordinateConfig
clearSubordinateConfig
setSubordinateConfig
Optional. If this is a subordinate
CertificateAuthority,
this field will be set with the subordinate configuration, which describes
its issuers. This may be updated, but this
CertificateAuthority
must continue to validate.
| Parameter |
| Name |
Description |
var |
SubordinateConfig
|
| Returns |
| Type |
Description |
$this |
|
getTier
| Returns |
| Type |
Description |
int |
Enum of type Tier. |
setTier
| Parameter |
| Name |
Description |
var |
int
Enum of type Tier.
|
| Returns |
| Type |
Description |
$this |
|
getState
| Returns |
| Type |
Description |
int |
Enum of type State. |
setState
| Parameter |
| Name |
Description |
var |
int
Enum of type State.
|
| Returns |
| Type |
Description |
$this |
|
getPemCaCertificates
setPemCaCertificates
| Parameter |
| Name |
Description |
var |
string[]
|
| Returns |
| Type |
Description |
$this |
|
getCaCertificateDescriptions
Output only. A structured description of this
CertificateAuthority's
CA certificate and its issuers. Ordered as self-to-root.
setCaCertificateDescriptions
Output only. A structured description of this
CertificateAuthority's
CA certificate and its issuers. Ordered as self-to-root.
| Returns |
| Type |
Description |
$this |
|
getGcsBucket
Immutable. The name of a Cloud Storage bucket where this
CertificateAuthority
will publish content, such as the CA certificate and CRLs. This must be a
bucket name, without any prefixes (such as gs://) or suffixes (such as
.googleapis.com). For example, to use a bucket named my-bucket, you
would simply specify my-bucket. If not specified, a managed bucket will
be created.
| Returns |
| Type |
Description |
string |
|
setGcsBucket
Immutable. The name of a Cloud Storage bucket where this
CertificateAuthority
will publish content, such as the CA certificate and CRLs. This must be a
bucket name, without any prefixes (such as gs://) or suffixes (such as
.googleapis.com). For example, to use a bucket named my-bucket, you
would simply specify my-bucket. If not specified, a managed bucket will
be created.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getAccessUrls
Output only. URLs for accessing content published by this CA, such as the
CA certificate and CRLs.
hasAccessUrls
clearAccessUrls
setAccessUrls
Output only. URLs for accessing content published by this CA, such as the
CA certificate and CRLs.
| Returns |
| Type |
Description |
$this |
|
getCreateTime
hasCreateTime
clearCreateTime
setCreateTime
| Returns |
| Type |
Description |
$this |
|
getUpdateTime
hasUpdateTime
clearUpdateTime
setUpdateTime
| Returns |
| Type |
Description |
$this |
|
getDeleteTime
hasDeleteTime
clearDeleteTime
setDeleteTime
| Returns |
| Type |
Description |
$this |
|
getExpireTime
hasExpireTime
clearExpireTime
setExpireTime
| Returns |
| Type |
Description |
$this |
|
getLabels
Optional. Labels with user-defined metadata.
setLabels
Optional. Labels with user-defined metadata.
| Returns |
| Type |
Description |
$this |
|
getUserDefinedAccessUrls
Optional. User-defined URLs for CA certificate and CRLs. The service does
not publish content to these URLs. It is up to the user to mirror content
to these URLs.
hasUserDefinedAccessUrls
clearUserDefinedAccessUrls
setUserDefinedAccessUrls
Optional. User-defined URLs for CA certificate and CRLs. The service does
not publish content to these URLs. It is up to the user to mirror content
to these URLs.
| Returns |
| Type |
Description |
$this |
|
getSatisfiesPzs
Output only. Reserved for future use.
| Returns |
| Type |
Description |
bool |
|
setSatisfiesPzs
Output only. Reserved for future use.
| Parameter |
| Name |
Description |
var |
bool
|
| Returns |
| Type |
Description |
$this |
|
getSatisfiesPzi
Output only. Reserved for future use.
| Returns |
| Type |
Description |
bool |
|
setSatisfiesPzi
Output only. Reserved for future use.
| Parameter |
| Name |
Description |
var |
bool
|
| Returns |
| Type |
Description |
$this |
|