Class X509Parameters.NameConstraints (2.47.0)

public static final class X509Parameters.NameConstraints extends GeneratedMessageV3 implements X509Parameters.NameConstraintsOrBuilder

Describes the X.509 name constraints extension, per https://tools.ietf.org/html/rfc5280#section-4.2.1.10

Protobuf type google.cloud.security.privateca.v1.X509Parameters.NameConstraints

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > X509Parameters.NameConstraints

Static Fields

CRITICAL_FIELD_NUMBER

public static final int CRITICAL_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDED_DNS_NAMES_FIELD_NUMBER

public static final int EXCLUDED_DNS_NAMES_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDED_EMAIL_ADDRESSES_FIELD_NUMBER

public static final int EXCLUDED_EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDED_IP_RANGES_FIELD_NUMBER

public static final int EXCLUDED_IP_RANGES_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDED_URIS_FIELD_NUMBER

public static final int EXCLUDED_URIS_FIELD_NUMBER
Field Value
Type Description
int

PERMITTED_DNS_NAMES_FIELD_NUMBER

public static final int PERMITTED_DNS_NAMES_FIELD_NUMBER
Field Value
Type Description
int

PERMITTED_EMAIL_ADDRESSES_FIELD_NUMBER

public static final int PERMITTED_EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
Type Description
int

PERMITTED_IP_RANGES_FIELD_NUMBER

public static final int PERMITTED_IP_RANGES_FIELD_NUMBER
Field Value
Type Description
int

PERMITTED_URIS_FIELD_NUMBER

public static final int PERMITTED_URIS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static X509Parameters.NameConstraints getDefaultInstance()
Returns
Type Description
X509Parameters.NameConstraints

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static X509Parameters.NameConstraints.Builder newBuilder()
Returns
Type Description
X509Parameters.NameConstraints.Builder

newBuilder(X509Parameters.NameConstraints prototype)

public static X509Parameters.NameConstraints.Builder newBuilder(X509Parameters.NameConstraints prototype)
Parameter
Name Description
prototype X509Parameters.NameConstraints
Returns
Type Description
X509Parameters.NameConstraints.Builder

parseDelimitedFrom(InputStream input)

public static X509Parameters.NameConstraints parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static X509Parameters.NameConstraints parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static X509Parameters.NameConstraints parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static X509Parameters.NameConstraints parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static X509Parameters.NameConstraints parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static X509Parameters.NameConstraints parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
X509Parameters.NameConstraints
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<X509Parameters.NameConstraints> parser()
Returns
Type Description
Parser<NameConstraints>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCritical()

public boolean getCritical()

Indicates whether or not the name constraints are marked critical.

bool critical = 1;

Returns
Type Description
boolean

The critical.

getDefaultInstanceForType()

public X509Parameters.NameConstraints getDefaultInstanceForType()
Returns
Type Description
X509Parameters.NameConstraints

getExcludedDnsNames(int index)

public String getExcludedDnsNames(int index)

Contains excluded DNS names. Any DNS name that can be constructed by simply adding zero or more labels to the left-hand side of the name satisfies the name constraint. For example, example.com, www.example.com, www.sub.example.com would satisfy example.com while example1.com does not.

repeated string excluded_dns_names = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludedDnsNames at the given index.

getExcludedDnsNamesBytes(int index)

public ByteString getExcludedDnsNamesBytes(int index)

Contains excluded DNS names. Any DNS name that can be constructed by simply adding zero or more labels to the left-hand side of the name satisfies the name constraint. For example, example.com, www.example.com, www.sub.example.com would satisfy example.com while example1.com does not.

repeated string excluded_dns_names = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludedDnsNames at the given index.

getExcludedDnsNamesCount()

public int getExcludedDnsNamesCount()

Contains excluded DNS names. Any DNS name that can be constructed by simply adding zero or more labels to the left-hand side of the name satisfies the name constraint. For example, example.com, www.example.com, www.sub.example.com would satisfy example.com while example1.com does not.

repeated string excluded_dns_names = 3;

Returns
Type Description
int

The count of excludedDnsNames.

getExcludedDnsNamesList()

public ProtocolStringList getExcludedDnsNamesList()

Contains excluded DNS names. Any DNS name that can be constructed by simply adding zero or more labels to the left-hand side of the name satisfies the name constraint. For example, example.com, www.example.com, www.sub.example.com would satisfy example.com while example1.com does not.

repeated string excluded_dns_names = 3;

Returns
Type Description
ProtocolStringList

A list containing the excludedDnsNames.

getExcludedEmailAddresses(int index)

public String getExcludedEmailAddresses(int index)

Contains the excluded email addresses. The value can be a particular email address, a hostname to indicate all email addresses on that host or a domain with a leading period (e.g. .example.com) to indicate all email addresses in that domain.

repeated string excluded_email_addresses = 7;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludedEmailAddresses at the given index.

getExcludedEmailAddressesBytes(int index)

public ByteString getExcludedEmailAddressesBytes(int index)

Contains the excluded email addresses. The value can be a particular email address, a hostname to indicate all email addresses on that host or a domain with a leading period (e.g. .example.com) to indicate all email addresses in that domain.

repeated string excluded_email_addresses = 7;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludedEmailAddresses at the given index.

getExcludedEmailAddressesCount()

public int getExcludedEmailAddressesCount()

Contains the excluded email addresses. The value can be a particular email address, a hostname to indicate all email addresses on that host or a domain with a leading period (e.g. .example.com) to indicate all email addresses in that domain.

repeated string excluded_email_addresses = 7;

Returns
Type Description
int

The count of excludedEmailAddresses.

getExcludedEmailAddressesList()

public ProtocolStringList getExcludedEmailAddressesList()

Contains the excluded email addresses. The value can be a particular email address, a hostname to indicate all email addresses on that host or a domain with a leading period (e.g. .example.com) to indicate all email addresses in that domain.

repeated string excluded_email_addresses = 7;

Returns
Type Description
ProtocolStringList

A list containing the excludedEmailAddresses.

getExcludedIpRanges(int index)

public String getExcludedIpRanges(int index)

Contains the excluded IP ranges. For IPv4 addresses, the ranges are expressed using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 addresses.

repeated string excluded_ip_ranges = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludedIpRanges at the given index.

getExcludedIpRangesBytes(int index)

public ByteString getExcludedIpRangesBytes(int index)

Contains the excluded IP ranges. For IPv4 addresses, the ranges are expressed using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 addresses.

repeated string excluded_ip_ranges = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludedIpRanges at the given index.

getExcludedIpRangesCount()

public int getExcludedIpRangesCount()

Contains the excluded IP ranges. For IPv4 addresses, the ranges are expressed using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 addresses.

repeated string excluded_ip_ranges = 5;

Returns
Type Description
int

The count of excludedIpRanges.

getExcludedIpRangesList()

public ProtocolStringList getExcludedIpRangesList()

Contains the excluded IP ranges. For IPv4 addresses, the ranges are expressed using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 addresses.

repeated string excluded_ip_ranges = 5;

Returns
Type Description
ProtocolStringList

A list containing the excludedIpRanges.

getExcludedUris(int index)

public String getExcludedUris(int index)

Contains the excluded URIs that apply to the host part of the name. The value can be a hostname or a domain with a leading period (like .example.com)

repeated string excluded_uris = 9;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludedUris at the given index.

getExcludedUrisBytes(int index)

public ByteString getExcludedUrisBytes(int index)

Contains the excluded URIs that apply to the host part of the name. The value can be a hostname or a domain with a leading period (like .example.com)

repeated string excluded_uris = 9;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludedUris at the given index.

getExcludedUrisCount()

public int getExcludedUrisCount()

Contains the excluded URIs that apply to the host part of the name. The value can be a hostname or a domain with a leading period (like .example.com)

repeated string excluded_uris = 9;

Returns
Type Description
int

The count of excludedUris.

getExcludedUrisList()

public ProtocolStringList getExcludedUrisList()

Contains the excluded URIs that apply to the host part of the name. The value can be a hostname or a domain with a leading period (like .example.com)

repeated string excluded_uris = 9;

Returns
Type Description
ProtocolStringList

A list containing the excludedUris.

getParserForType()

public Parser<X509Parameters.NameConstraints> getParserForType()
Returns
Type Description
Parser<NameConstraints>
Overrides

getPermittedDnsNames(int index)

public String getPermittedDnsNames(int index)

Contains permitted DNS names. Any DNS name that can be constructed by simply adding zero or more labels to the left-hand side of the name satisfies the name constraint. For example, example.com, www.example.com, www.sub.example.com would satisfy example.com while example1.com does not.

repeated string permitted_dns_names = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The permittedDnsNames at the given index.

getPermittedDnsNamesBytes(int index)

public ByteString getPermittedDnsNamesBytes(int index)

Contains permitted DNS names. Any DNS name that can be constructed by simply adding zero or more labels to the left-hand side of the name satisfies the name constraint. For example, example.com, www.example.com, www.sub.example.com would satisfy example.com while example1.com does not.

repeated string permitted_dns_names = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the permittedDnsNames at the given index.

getPermittedDnsNamesCount()

public int getPermittedDnsNamesCount()

Contains permitted DNS names. Any DNS name that can be constructed by simply adding zero or more labels to the left-hand side of the name satisfies the name constraint. For example, example.com, www.example.com, www.sub.example.com would satisfy example.com while example1.com does not.

repeated string permitted_dns_names = 2;

Returns
Type Description
int

The count of permittedDnsNames.

getPermittedDnsNamesList()

public ProtocolStringList getPermittedDnsNamesList()

Contains permitted DNS names. Any DNS name that can be constructed by simply adding zero or more labels to the left-hand side of the name satisfies the name constraint. For example, example.com, www.example.com, www.sub.example.com would satisfy example.com while example1.com does not.

repeated string permitted_dns_names = 2;

Returns
Type Description
ProtocolStringList

A list containing the permittedDnsNames.

getPermittedEmailAddresses(int index)

public String getPermittedEmailAddresses(int index)

Contains the permitted email addresses. The value can be a particular email address, a hostname to indicate all email addresses on that host or a domain with a leading period (e.g. .example.com) to indicate all email addresses in that domain.

repeated string permitted_email_addresses = 6;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The permittedEmailAddresses at the given index.

getPermittedEmailAddressesBytes(int index)

public ByteString getPermittedEmailAddressesBytes(int index)

Contains the permitted email addresses. The value can be a particular email address, a hostname to indicate all email addresses on that host or a domain with a leading period (e.g. .example.com) to indicate all email addresses in that domain.

repeated string permitted_email_addresses = 6;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the permittedEmailAddresses at the given index.

getPermittedEmailAddressesCount()

public int getPermittedEmailAddressesCount()

Contains the permitted email addresses. The value can be a particular email address, a hostname to indicate all email addresses on that host or a domain with a leading period (e.g. .example.com) to indicate all email addresses in that domain.

repeated string permitted_email_addresses = 6;

Returns
Type Description
int

The count of permittedEmailAddresses.

getPermittedEmailAddressesList()

public ProtocolStringList getPermittedEmailAddressesList()

Contains the permitted email addresses. The value can be a particular email address, a hostname to indicate all email addresses on that host or a domain with a leading period (e.g. .example.com) to indicate all email addresses in that domain.

repeated string permitted_email_addresses = 6;

Returns
Type Description
ProtocolStringList

A list containing the permittedEmailAddresses.

getPermittedIpRanges(int index)

public String getPermittedIpRanges(int index)

Contains the permitted IP ranges. For IPv4 addresses, the ranges are expressed using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 addresses.

repeated string permitted_ip_ranges = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The permittedIpRanges at the given index.

getPermittedIpRangesBytes(int index)

public ByteString getPermittedIpRangesBytes(int index)

Contains the permitted IP ranges. For IPv4 addresses, the ranges are expressed using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 addresses.

repeated string permitted_ip_ranges = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the permittedIpRanges at the given index.

getPermittedIpRangesCount()

public int getPermittedIpRangesCount()

Contains the permitted IP ranges. For IPv4 addresses, the ranges are expressed using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 addresses.

repeated string permitted_ip_ranges = 4;

Returns
Type Description
int

The count of permittedIpRanges.

getPermittedIpRangesList()

public ProtocolStringList getPermittedIpRangesList()

Contains the permitted IP ranges. For IPv4 addresses, the ranges are expressed using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 addresses.

repeated string permitted_ip_ranges = 4;

Returns
Type Description
ProtocolStringList

A list containing the permittedIpRanges.

getPermittedUris(int index)

public String getPermittedUris(int index)

Contains the permitted URIs that apply to the host part of the name. The value can be a hostname or a domain with a leading period (like .example.com)

repeated string permitted_uris = 8;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The permittedUris at the given index.

getPermittedUrisBytes(int index)

public ByteString getPermittedUrisBytes(int index)

Contains the permitted URIs that apply to the host part of the name. The value can be a hostname or a domain with a leading period (like .example.com)

repeated string permitted_uris = 8;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the permittedUris at the given index.

getPermittedUrisCount()

public int getPermittedUrisCount()

Contains the permitted URIs that apply to the host part of the name. The value can be a hostname or a domain with a leading period (like .example.com)

repeated string permitted_uris = 8;

Returns
Type Description
int

The count of permittedUris.

getPermittedUrisList()

public ProtocolStringList getPermittedUrisList()

Contains the permitted URIs that apply to the host part of the name. The value can be a hostname or a domain with a leading period (like .example.com)

repeated string permitted_uris = 8;

Returns
Type Description
ProtocolStringList

A list containing the permittedUris.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public X509Parameters.NameConstraints.Builder newBuilderForType()
Returns
Type Description
X509Parameters.NameConstraints.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected X509Parameters.NameConstraints.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
X509Parameters.NameConstraints.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public X509Parameters.NameConstraints.Builder toBuilder()
Returns
Type Description
X509Parameters.NameConstraints.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException