# Interface CaPool.IssuancePolicyOrBuilder (2.95.0)

2.95.0 (latest) 2.93.0 2.90.0 2.89.0 2.87.0 2.85.0 2.84.0 2.82.0 2.80.0 2.78.0 2.77.0 2.76.0 2.75.0 2.74.0 2.72.0 2.70.0 2.69.0 2.66.0 2.65.0 2.64.0 2.62.0 2.61.0 2.60.0 2.59.0 2.58.0 2.57.0 2.56.0 2.55.0 2.54.0 2.53.0 2.51.0 2.50.0 2.49.0 2.48.0 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.39.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.26.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.4 2.4.0 2.3.0 2.2.5

    public static interface CaPool.IssuancePolicyOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAllowRequesterSpecifiedNotBeforeTime()

    public abstract boolean getAllowRequesterSpecifiedNotBeforeTime()

Optional. If set to true, allows requesters to specify the
requested_not_before_time
field when creating a
Certificate.
Certificates requested with this option enabled will have a
'not_before_time' equal to the value specified in the request. The
'not_after_time' will be adjusted to preserve the requested lifetime. The
maximum time that a certificate can be backdated with these options is 48
hours in the past. This option cannot be set if
backdate_duration
is set.

`
bool allow_requester_specified_not_before_time = 8 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The allowRequesterSpecifiedNotBeforeTime. |

### getAllowedIssuanceModes()

    public abstract CaPool.IssuancePolicy.IssuanceModes getAllowedIssuanceModes()

Optional. If specified, then only methods allowed in the
IssuanceModes
may be used to issue
Certificates.

`
.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes` | The allowedIssuanceModes. |

### getAllowedIssuanceModesOrBuilder()

    public abstract CaPool.IssuancePolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder()

Optional. If specified, then only methods allowed in the
IssuanceModes
may be used to issue
Certificates.

`
.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder` |   |

### getAllowedKeyTypes(int index)

    public abstract CaPool.IssuancePolicy.AllowedKeyType getAllowedKeyTypes(int index)

Optional. If any
AllowedKeyType
is specified, then the certificate request's public key must match one of
the key types listed here. Otherwise, any key may be used.

`
repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType` |   |

### getAllowedKeyTypesCount()

    public abstract int getAllowedKeyTypesCount()

Optional. If any
AllowedKeyType
is specified, then the certificate request's public key must match one of
the key types listed here. Otherwise, any key may be used.

`
repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getAllowedKeyTypesList()

    public abstract List<CaPool.IssuancePolicy.AllowedKeyType> getAllowedKeyTypesList()

Optional. If any
AllowedKeyType
is specified, then the certificate request's public key must match one of
the key types listed here. Otherwise, any key may be used.

`
repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType>` |   |

### getAllowedKeyTypesOrBuilder(int index)

    public abstract CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder getAllowedKeyTypesOrBuilder(int index)

Optional. If any
AllowedKeyType
is specified, then the certificate request's public key must match one of
the key types listed here. Otherwise, any key may be used.

`
repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder` |   |

### getAllowedKeyTypesOrBuilderList()

    public abstract List<? extends CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder> getAllowedKeyTypesOrBuilderList()

Optional. If any
AllowedKeyType
is specified, then the certificate request's public key must match one of
the key types listed here. Otherwise, any key may be used.

`
repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder>` |   |

### getBackdateDuration()

    public abstract Duration getBackdateDuration()

Optional. If set, all certificates issued from this
CaPool will be backdated by
this duration. The 'not_before_time' will be the issuance time minus this
backdate_duration,
and the 'not_after_time' will be adjusted to preserve the requested
lifetime. The maximum duration that a certificate can be backdated with
these options is 48 hours in the past.
This option cannot be set if
allow_requester_specified_not_before_time
is set.

`
.google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The backdateDuration. |

### getBackdateDurationOrBuilder()

    public abstract DurationOrBuilder getBackdateDurationOrBuilder()

Optional. If set, all certificates issued from this
CaPool will be backdated by
this duration. The 'not_before_time' will be the issuance time minus this
backdate_duration,
and the 'not_after_time' will be adjusted to preserve the requested
lifetime. The maximum duration that a certificate can be backdated with
these options is 48 hours in the past.
This option cannot be set if
allow_requester_specified_not_before_time
is set.

`
.google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getBaselineValues()

    public abstract X509Parameters getBaselineValues()

Optional. A set of X.509 values that will be applied to all certificates
issued through this CaPool.
If a certificate request includes conflicting values for the same
properties, they will be overwritten by the values defined here. If a
certificate request uses a
CertificateTemplate
that defines conflicting
predefined_values
for the same properties, the certificate issuance request will fail.

`
.google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.X509Parameters` | The baselineValues. |

### getBaselineValuesOrBuilder()

    public abstract X509ParametersOrBuilder getBaselineValuesOrBuilder()

Optional. A set of X.509 values that will be applied to all certificates
issued through this CaPool.
If a certificate request includes conflicting values for the same
properties, they will be overwritten by the values defined here. If a
certificate request uses a
CertificateTemplate
that defines conflicting
predefined_values
for the same properties, the certificate issuance request will fail.

`
.google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.X509ParametersOrBuilder` |   |

### getIdentityConstraints()

    public abstract CertificateIdentityConstraints getIdentityConstraints()

Optional. Describes constraints on identities that may appear in
Certificates issued
through this CaPool. If this
is omitted, then this CaPool
will not add restrictions on a certificate's identity.

`
.google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.CertificateIdentityConstraints` | The identityConstraints. |

### getIdentityConstraintsOrBuilder()

    public abstract CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder()

Optional. Describes constraints on identities that may appear in
Certificates issued
through this CaPool. If this
is omitted, then this CaPool
will not add restrictions on a certificate's identity.

`
.google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder` |   |

### getMaximumLifetime()

    public abstract Duration getMaximumLifetime()

Optional. The maximum lifetime allowed for issued
Certificates. Note that
if the issuing
CertificateAuthority
expires before a
Certificate resource's
requested maximum_lifetime, the effective lifetime will be explicitly
truncated to match it.

`
.google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The maximumLifetime. |

### getMaximumLifetimeOrBuilder()

    public abstract DurationOrBuilder getMaximumLifetimeOrBuilder()

Optional. The maximum lifetime allowed for issued
Certificates. Note that
if the issuing
CertificateAuthority
expires before a
Certificate resource's
requested maximum_lifetime, the effective lifetime will be explicitly
truncated to match it.

`
.google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getPassthroughExtensions()

    public abstract CertificateExtensionConstraints getPassthroughExtensions()

Optional. Describes the set of X.509 extensions that may appear in a
Certificate issued
through this CaPool. If a
certificate request sets extensions that don't appear in the
passthrough_extensions,
those extensions will be dropped. If a certificate request uses a
CertificateTemplate
with
predefined_values
that don't appear here, the certificate issuance request will fail. If
this is omitted, then this
CaPool will not add
restrictions on a certificate's X.509 extensions. These constraints do
not apply to X.509 extensions set in this
CaPool's
baseline_values.

`
.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.CertificateExtensionConstraints` | The passthroughExtensions. |

### getPassthroughExtensionsOrBuilder()

    public abstract CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder()

Optional. Describes the set of X.509 extensions that may appear in a
Certificate issued
through this CaPool. If a
certificate request sets extensions that don't appear in the
passthrough_extensions,
those extensions will be dropped. If a certificate request uses a
CertificateTemplate
with
predefined_values
that don't appear here, the certificate issuance request will fail. If
this is omitted, then this
CaPool will not add
restrictions on a certificate's X.509 extensions. These constraints do
not apply to X.509 extensions set in this
CaPool's
baseline_values.

`
.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder` |   |

### hasAllowedIssuanceModes()

    public abstract boolean hasAllowedIssuanceModes()

Optional. If specified, then only methods allowed in the
IssuanceModes
may be used to issue
Certificates.

`
.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the allowedIssuanceModes field is set. |

### hasBackdateDuration()

    public abstract boolean hasBackdateDuration()

Optional. If set, all certificates issued from this
CaPool will be backdated by
this duration. The 'not_before_time' will be the issuance time minus this
backdate_duration,
and the 'not_after_time' will be adjusted to preserve the requested
lifetime. The maximum duration that a certificate can be backdated with
these options is 48 hours in the past.
This option cannot be set if
allow_requester_specified_not_before_time
is set.

`
.google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the backdateDuration field is set. |

### hasBaselineValues()

    public abstract boolean hasBaselineValues()

Optional. A set of X.509 values that will be applied to all certificates
issued through this CaPool.
If a certificate request includes conflicting values for the same
properties, they will be overwritten by the values defined here. If a
certificate request uses a
CertificateTemplate
that defines conflicting
predefined_values
for the same properties, the certificate issuance request will fail.

`
.google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the baselineValues field is set. |

### hasIdentityConstraints()

    public abstract boolean hasIdentityConstraints()

Optional. Describes constraints on identities that may appear in
Certificates issued
through this CaPool. If this
is omitted, then this CaPool
will not add restrictions on a certificate's identity.

`
.google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the identityConstraints field is set. |

### hasMaximumLifetime()

    public abstract boolean hasMaximumLifetime()

Optional. The maximum lifetime allowed for issued
Certificates. Note that
if the issuing
CertificateAuthority
expires before a
Certificate resource's
requested maximum_lifetime, the effective lifetime will be explicitly
truncated to match it.

`
.google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the maximumLifetime field is set. |

### hasPassthroughExtensions()

    public abstract boolean hasPassthroughExtensions()

Optional. Describes the set of X.509 extensions that may appear in a
Certificate issued
through this CaPool. If a
certificate request sets extensions that don't appear in the
passthrough_extensions,
those extensions will be dropped. If a certificate request uses a
CertificateTemplate
with
predefined_values
that don't appear here, the certificate issuance request will fail. If
this is omitted, then this
CaPool will not add
restrictions on a certificate's X.509 extensions. These constraints do
not apply to X.509 extensions set in this
CaPool's
baseline_values.

`
.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the passthroughExtensions field is set. |