Class X509Parameters.NameConstraints

  • All Implemented Interfaces:
    X509Parameters.NameConstraintsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    X509Parameters

    public static final class X509Parameters.NameConstraints
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Field Detail

      • PERMITTED_DNS_NAMES_FIELD_NUMBER

        public static final int PERMITTED_DNS_NAMES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXCLUDED_DNS_NAMES_FIELD_NUMBER

        public static final int EXCLUDED_DNS_NAMES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PERMITTED_IP_RANGES_FIELD_NUMBER

        public static final int PERMITTED_IP_RANGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXCLUDED_IP_RANGES_FIELD_NUMBER

        public static final int EXCLUDED_IP_RANGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PERMITTED_EMAIL_ADDRESSES_FIELD_NUMBER

        public static final int PERMITTED_EMAIL_ADDRESSES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXCLUDED_EMAIL_ADDRESSES_FIELD_NUMBER

        public static final int EXCLUDED_EMAIL_ADDRESSES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PERMITTED_URIS_FIELD_NUMBER

        public static final int PERMITTED_URIS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXCLUDED_URIS_FIELD_NUMBER

        public static final int EXCLUDED_URIS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getPermittedDnsNamesList

        public com.google.protobuf.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;
        Specified by:
        getPermittedDnsNamesList in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        A list containing the permittedDnsNames.
      • 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;
        Specified by:
        getPermittedDnsNamesCount in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        The count of permittedDnsNames.
      • getPermittedDnsNames

        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;
        Specified by:
        getPermittedDnsNames in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The permittedDnsNames at the given index.
      • getPermittedDnsNamesBytes

        public com.google.protobuf.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;
        Specified by:
        getPermittedDnsNamesBytes in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the permittedDnsNames at the given index.
      • getExcludedDnsNamesList

        public com.google.protobuf.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;
        Specified by:
        getExcludedDnsNamesList in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        A list containing the excludedDnsNames.
      • 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;
        Specified by:
        getExcludedDnsNamesCount in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        The count of excludedDnsNames.
      • getExcludedDnsNames

        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;
        Specified by:
        getExcludedDnsNames in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The excludedDnsNames at the given index.
      • getExcludedDnsNamesBytes

        public com.google.protobuf.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;
        Specified by:
        getExcludedDnsNamesBytes in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the excludedDnsNames at the given index.
      • getPermittedIpRangesList

        public com.google.protobuf.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;
        Specified by:
        getPermittedIpRangesList in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        A list containing the permittedIpRanges.
      • 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;
        Specified by:
        getPermittedIpRangesCount in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        The count of permittedIpRanges.
      • getPermittedIpRanges

        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;
        Specified by:
        getPermittedIpRanges in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The permittedIpRanges at the given index.
      • getPermittedIpRangesBytes

        public com.google.protobuf.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;
        Specified by:
        getPermittedIpRangesBytes in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the permittedIpRanges at the given index.
      • getExcludedIpRangesList

        public com.google.protobuf.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;
        Specified by:
        getExcludedIpRangesList in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        A list containing the excludedIpRanges.
      • 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;
        Specified by:
        getExcludedIpRangesCount in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        The count of excludedIpRanges.
      • getExcludedIpRanges

        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;
        Specified by:
        getExcludedIpRanges in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The excludedIpRanges at the given index.
      • getExcludedIpRangesBytes

        public com.google.protobuf.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;
        Specified by:
        getExcludedIpRangesBytes in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the excludedIpRanges at the given index.
      • getPermittedEmailAddressesList

        public com.google.protobuf.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;
        Specified by:
        getPermittedEmailAddressesList in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        A list containing the permittedEmailAddresses.
      • 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;
        Specified by:
        getPermittedEmailAddressesCount in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        The count of permittedEmailAddresses.
      • getPermittedEmailAddresses

        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;
        Specified by:
        getPermittedEmailAddresses in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The permittedEmailAddresses at the given index.
      • getPermittedEmailAddressesBytes

        public com.google.protobuf.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;
        Specified by:
        getPermittedEmailAddressesBytes in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the permittedEmailAddresses at the given index.
      • getExcludedEmailAddressesList

        public com.google.protobuf.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;
        Specified by:
        getExcludedEmailAddressesList in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        A list containing the excludedEmailAddresses.
      • 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;
        Specified by:
        getExcludedEmailAddressesCount in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        The count of excludedEmailAddresses.
      • getExcludedEmailAddresses

        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;
        Specified by:
        getExcludedEmailAddresses in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The excludedEmailAddresses at the given index.
      • getExcludedEmailAddressesBytes

        public com.google.protobuf.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;
        Specified by:
        getExcludedEmailAddressesBytes in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the excludedEmailAddresses at the given index.
      • getPermittedUrisList

        public com.google.protobuf.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;
        Specified by:
        getPermittedUrisList in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        A list containing the permittedUris.
      • 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;
        Specified by:
        getPermittedUrisCount in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        The count of permittedUris.
      • getPermittedUris

        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;
        Specified by:
        getPermittedUris in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The permittedUris at the given index.
      • getPermittedUrisBytes

        public com.google.protobuf.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;
        Specified by:
        getPermittedUrisBytes in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the permittedUris at the given index.
      • getExcludedUrisList

        public com.google.protobuf.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;
        Specified by:
        getExcludedUrisList in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        A list containing the excludedUris.
      • 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;
        Specified by:
        getExcludedUrisCount in interface X509Parameters.NameConstraintsOrBuilder
        Returns:
        The count of excludedUris.
      • getExcludedUris

        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;
        Specified by:
        getExcludedUris in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The excludedUris at the given index.
      • getExcludedUrisBytes

        public com.google.protobuf.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;
        Specified by:
        getExcludedUrisBytes in interface X509Parameters.NameConstraintsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the excludedUris at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static X509Parameters.NameConstraints parseFrom​(ByteBuffer data)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static X509Parameters.NameConstraints parseFrom​(ByteBuffer data,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static X509Parameters.NameConstraints parseFrom​(com.google.protobuf.ByteString data)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static X509Parameters.NameConstraints parseFrom​(com.google.protobuf.ByteString data,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static X509Parameters.NameConstraints parseFrom​(byte[] data)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static X509Parameters.NameConstraints parseFrom​(byte[] data,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public X509Parameters.NameConstraints.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public X509Parameters.NameConstraints.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected X509Parameters.NameConstraints.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<X509Parameters.NameConstraints> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public X509Parameters.NameConstraints getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder