Class X509Parameters.NameConstraints (2.25.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
TypeDescription
int

EXCLUDED_DNS_NAMES_FIELD_NUMBER

public static final int EXCLUDED_DNS_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

EXCLUDED_EMAIL_ADDRESSES_FIELD_NUMBER

public static final int EXCLUDED_EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
TypeDescription
int

EXCLUDED_IP_RANGES_FIELD_NUMBER

public static final int EXCLUDED_IP_RANGES_FIELD_NUMBER
Field Value
TypeDescription
int

EXCLUDED_URIS_FIELD_NUMBER

public static final int EXCLUDED_URIS_FIELD_NUMBER
Field Value
TypeDescription
int

PERMITTED_DNS_NAMES_FIELD_NUMBER

public static final int PERMITTED_DNS_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

PERMITTED_EMAIL_ADDRESSES_FIELD_NUMBER

public static final int PERMITTED_EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
TypeDescription
int

PERMITTED_IP_RANGES_FIELD_NUMBER

public static final int PERMITTED_IP_RANGES_FIELD_NUMBER
Field Value
TypeDescription
int

PERMITTED_URIS_FIELD_NUMBER

public static final int PERMITTED_URIS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static X509Parameters.NameConstraints getDefaultInstance()
Returns
TypeDescription
X509Parameters.NameConstraints

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static X509Parameters.NameConstraints.Builder newBuilder()
Returns
TypeDescription
X509Parameters.NameConstraints.Builder

newBuilder(X509Parameters.NameConstraints prototype)

public static X509Parameters.NameConstraints.Builder newBuilder(X509Parameters.NameConstraints prototype)
Parameter
NameDescription
prototypeX509Parameters.NameConstraints
Returns
TypeDescription
X509Parameters.NameConstraints.Builder

parseDelimitedFrom(InputStream input)

public static X509Parameters.NameConstraints parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static X509Parameters.NameConstraints parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static X509Parameters.NameConstraints parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static X509Parameters.NameConstraints parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static X509Parameters.NameConstraints parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static X509Parameters.NameConstraints parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static X509Parameters.NameConstraints parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
X509Parameters.NameConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCritical()

public boolean getCritical()

Indicates whether or not the name constraints are marked critical.

bool critical = 1;

Returns
TypeDescription
boolean

The critical.

getDefaultInstanceForType()

public X509Parameters.NameConstraints getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the excludedUris.

getParserForType()

public Parser<X509Parameters.NameConstraints> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the permittedUris.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public X509Parameters.NameConstraints.Builder newBuilderForType()
Returns
TypeDescription
X509Parameters.NameConstraints.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected X509Parameters.NameConstraints.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
X509Parameters.NameConstraints.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public X509Parameters.NameConstraints.Builder toBuilder()
Returns
TypeDescription
X509Parameters.NameConstraints.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException