# Interface CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder (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 CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAllowCustomSans()

    public abstract boolean getAllowCustomSans()

Optional. Specifies if to allow custom X509Extension values.

`bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getAllowGlobbingDnsWildcards()

    public abstract boolean getAllowGlobbingDnsWildcards()

Optional. Specifies if glob patterns used for allowed_dns_names allows
wildcard certificates.

`bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getAllowedDnsNames(int index)

    public abstract String getAllowedDnsNames(int index)

Optional. Contains valid, fully-qualified host names. Glob patterns are also
supported. To allow an explicit wildcard certificate, escape with
backlash (i.e. `\`).
E.g. for globbed entries: `bar.com` will allow `foo.bar.com`, but not
`.bar.com`, unless the allow_globbing_dns_wildcards field is set.
E.g. for wildcard entries: `\.bar.com` will allow `*.bar.com`, but not
`foo.bar.com`.

`repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The allowedDnsNames at the given index. |

### getAllowedDnsNamesBytes(int index)

    public abstract ByteString getAllowedDnsNamesBytes(int index)

Optional. Contains valid, fully-qualified host names. Glob patterns are also
supported. To allow an explicit wildcard certificate, escape with
backlash (i.e. `\`).
E.g. for globbed entries: `bar.com` will allow `foo.bar.com`, but not
`.bar.com`, unless the allow_globbing_dns_wildcards field is set.
E.g. for wildcard entries: `\.bar.com` will allow `*.bar.com`, but not
`foo.bar.com`.

`repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the allowedDnsNames at the given index. |

### getAllowedDnsNamesCount()

    public abstract int getAllowedDnsNamesCount()

Optional. Contains valid, fully-qualified host names. Glob patterns are also
supported. To allow an explicit wildcard certificate, escape with
backlash (i.e. `\`).
E.g. for globbed entries: `bar.com` will allow `foo.bar.com`, but not
`.bar.com`, unless the allow_globbing_dns_wildcards field is set.
E.g. for wildcard entries: `\.bar.com` will allow `*.bar.com`, but not
`foo.bar.com`.

`repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getAllowedDnsNamesList()

    public abstract List<String> getAllowedDnsNamesList()

Optional. Contains valid, fully-qualified host names. Glob patterns are also
supported. To allow an explicit wildcard certificate, escape with
backlash (i.e. `\`).
E.g. for globbed entries: `bar.com` will allow `foo.bar.com`, but not
`.bar.com`, unless the allow_globbing_dns_wildcards field is set.
E.g. for wildcard entries: `\.bar.com` will allow `*.bar.com`, but not
`foo.bar.com`.

`repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the allowedDnsNames. |

### getAllowedEmailAddresses(int index)

    public abstract String getAllowedEmailAddresses(int index)

Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
supported.

`
repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The allowedEmailAddresses at the given index. |

### getAllowedEmailAddressesBytes(int index)

    public abstract ByteString getAllowedEmailAddressesBytes(int index)

Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
supported.

`
repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the allowedEmailAddresses at the given index. |

### getAllowedEmailAddressesCount()

    public abstract int getAllowedEmailAddressesCount()

Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
supported.

`
repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getAllowedEmailAddressesList()

    public abstract List<String> getAllowedEmailAddressesList()

Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
supported.

`
repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the allowedEmailAddresses. |

### getAllowedIps(int index)

    public abstract String getAllowedIps(int index)

Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
addresses and subnet ranges. Subnet ranges are specified using the
'/' notation (e.g. 10.0.0.0/8, 2001:700:300:1800::/64). Glob patterns
are supported only for ip address entries (i.e. not for subnet ranges).

`repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The allowedIps at the given index. |

### getAllowedIpsBytes(int index)

    public abstract ByteString getAllowedIpsBytes(int index)

Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
addresses and subnet ranges. Subnet ranges are specified using the
'/' notation (e.g. 10.0.0.0/8, 2001:700:300:1800::/64). Glob patterns
are supported only for ip address entries (i.e. not for subnet ranges).

`repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the allowedIps at the given index. |

### getAllowedIpsCount()

    public abstract int getAllowedIpsCount()

Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
addresses and subnet ranges. Subnet ranges are specified using the
'/' notation (e.g. 10.0.0.0/8, 2001:700:300:1800::/64). Glob patterns
are supported only for ip address entries (i.e. not for subnet ranges).

`repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getAllowedIpsList()

    public abstract List<String> getAllowedIpsList()

Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
addresses and subnet ranges. Subnet ranges are specified using the
'/' notation (e.g. 10.0.0.0/8, 2001:700:300:1800::/64). Glob patterns
are supported only for ip address entries (i.e. not for subnet ranges).

`repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the allowedIps. |

### getAllowedUris(int index)

    public abstract String getAllowedUris(int index)

Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
match across path seperators (i.e. '/') use the double star glob
pattern (i.e. '\*\*').

`repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The allowedUris at the given index. |

### getAllowedUrisBytes(int index)

    public abstract ByteString getAllowedUrisBytes(int index)

Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
match across path seperators (i.e. '/') use the double star glob
pattern (i.e. '\*\*').

`repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the allowedUris at the given index. |

### getAllowedUrisCount()

    public abstract int getAllowedUrisCount()

Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
match across path seperators (i.e. '/') use the double star glob
pattern (i.e. '\*\*').

`repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getAllowedUrisList()

    public abstract List<String> getAllowedUrisList()

Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
match across path seperators (i.e. '/') use the double star glob
pattern (i.e. '\*\*').

`repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the allowedUris. |