Class SubjectAltNames (2.53.0)

public final class SubjectAltNames extends GeneratedMessageV3 implements SubjectAltNamesOrBuilder

SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name).

Protobuf type google.cloud.security.privateca.v1beta1.SubjectAltNames

Static Fields

CUSTOM_SANS_FIELD_NUMBER

public static final int CUSTOM_SANS_FIELD_NUMBER
Field Value
Type Description
int

DNS_NAMES_FIELD_NUMBER

public static final int DNS_NAMES_FIELD_NUMBER
Field Value
Type Description
int

EMAIL_ADDRESSES_FIELD_NUMBER

public static final int EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
Type Description
int

IP_ADDRESSES_FIELD_NUMBER

public static final int IP_ADDRESSES_FIELD_NUMBER
Field Value
Type Description
int

URIS_FIELD_NUMBER

public static final int URIS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SubjectAltNames getDefaultInstance()
Returns
Type Description
SubjectAltNames

getDescriptor()

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

newBuilder()

public static SubjectAltNames.Builder newBuilder()
Returns
Type Description
SubjectAltNames.Builder

newBuilder(SubjectAltNames prototype)

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

parseDelimitedFrom(InputStream input)

public static SubjectAltNames parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubjectAltNames
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SubjectAltNames parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SubjectAltNames
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SubjectAltNames parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SubjectAltNames
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SubjectAltNames parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubjectAltNames
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SubjectAltNames parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SubjectAltNames
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SubjectAltNames> parser()
Returns
Type Description
Parser<SubjectAltNames>

Methods

equals(Object obj)

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

getCustomSans(int index)

public X509Extension getCustomSans(int index)

Contains additional subject alternative name values.

repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;

Parameter
Name Description
index int
Returns
Type Description
X509Extension

getCustomSansCount()

public int getCustomSansCount()

Contains additional subject alternative name values.

repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;

Returns
Type Description
int

getCustomSansList()

public List<X509Extension> getCustomSansList()

Contains additional subject alternative name values.

repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;

Returns
Type Description
List<X509Extension>

getCustomSansOrBuilder(int index)

public X509ExtensionOrBuilder getCustomSansOrBuilder(int index)

Contains additional subject alternative name values.

repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;

Parameter
Name Description
index int
Returns
Type Description
X509ExtensionOrBuilder

getCustomSansOrBuilderList()

public List<? extends X509ExtensionOrBuilder> getCustomSansOrBuilderList()

Contains additional subject alternative name values.

repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;

Returns
Type Description
List<? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>

getDefaultInstanceForType()

public SubjectAltNames getDefaultInstanceForType()
Returns
Type Description
SubjectAltNames

getDnsNames(int index)

public String getDnsNames(int index)

Contains only valid, fully-qualified host names.

repeated string dns_names = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The dnsNames at the given index.

getDnsNamesBytes(int index)

public ByteString getDnsNamesBytes(int index)

Contains only valid, fully-qualified host names.

repeated string dns_names = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the dnsNames at the given index.

getDnsNamesCount()

public int getDnsNamesCount()

Contains only valid, fully-qualified host names.

repeated string dns_names = 1;

Returns
Type Description
int

The count of dnsNames.

getDnsNamesList()

public ProtocolStringList getDnsNamesList()

Contains only valid, fully-qualified host names.

repeated string dns_names = 1;

Returns
Type Description
ProtocolStringList

A list containing the dnsNames.

getEmailAddresses(int index)

public String getEmailAddresses(int index)

Contains only valid RFC 2822 E-mail addresses.

repeated string email_addresses = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The emailAddresses at the given index.

getEmailAddressesBytes(int index)

public ByteString getEmailAddressesBytes(int index)

Contains only valid RFC 2822 E-mail addresses.

repeated string email_addresses = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the emailAddresses at the given index.

getEmailAddressesCount()

public int getEmailAddressesCount()

Contains only valid RFC 2822 E-mail addresses.

repeated string email_addresses = 3;

Returns
Type Description
int

The count of emailAddresses.

getEmailAddressesList()

public ProtocolStringList getEmailAddressesList()

Contains only valid RFC 2822 E-mail addresses.

repeated string email_addresses = 3;

Returns
Type Description
ProtocolStringList

A list containing the emailAddresses.

getIpAddresses(int index)

public String getIpAddresses(int index)

Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.

repeated string ip_addresses = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ipAddresses at the given index.

getIpAddressesBytes(int index)

public ByteString getIpAddressesBytes(int index)

Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.

repeated string ip_addresses = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ipAddresses at the given index.

getIpAddressesCount()

public int getIpAddressesCount()

Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.

repeated string ip_addresses = 4;

Returns
Type Description
int

The count of ipAddresses.

getIpAddressesList()

public ProtocolStringList getIpAddressesList()

Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.

repeated string ip_addresses = 4;

Returns
Type Description
ProtocolStringList

A list containing the ipAddresses.

getParserForType()

public Parser<SubjectAltNames> getParserForType()
Returns
Type Description
Parser<SubjectAltNames>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUris(int index)

public String getUris(int index)

Contains only valid RFC 3986 URIs.

repeated string uris = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The uris at the given index.

getUrisBytes(int index)

public ByteString getUrisBytes(int index)

Contains only valid RFC 3986 URIs.

repeated string uris = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the uris at the given index.

getUrisCount()

public int getUrisCount()

Contains only valid RFC 3986 URIs.

repeated string uris = 2;

Returns
Type Description
int

The count of uris.

getUrisList()

public ProtocolStringList getUrisList()

Contains only valid RFC 3986 URIs.

repeated string uris = 2;

Returns
Type Description
ProtocolStringList

A list containing the uris.

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 SubjectAltNames.Builder newBuilderForType()
Returns
Type Description
SubjectAltNames.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public SubjectAltNames.Builder toBuilder()
Returns
Type Description
SubjectAltNames.Builder

writeTo(CodedOutputStream output)

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