Class SubjectAltNames (2.15.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.v1.SubjectAltNames

Static Fields

CUSTOM_SANS_FIELD_NUMBER

public static final int CUSTOM_SANS_FIELD_NUMBER
Field Value
TypeDescription
int

DNS_NAMES_FIELD_NUMBER

public static final int DNS_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

EMAIL_ADDRESSES_FIELD_NUMBER

public static final int EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
TypeDescription
int

IP_ADDRESSES_FIELD_NUMBER

public static final int IP_ADDRESSES_FIELD_NUMBER
Field Value
TypeDescription
int

URIS_FIELD_NUMBER

public static final int URIS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SubjectAltNames getDefaultInstance()
Returns
TypeDescription
SubjectAltNames

getDescriptor()

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

newBuilder()

public static SubjectAltNames.Builder newBuilder()
Returns
TypeDescription
SubjectAltNames.Builder

newBuilder(SubjectAltNames prototype)

public static SubjectAltNames.Builder newBuilder(SubjectAltNames prototype)
Parameter
NameDescription
prototypeSubjectAltNames
Returns
TypeDescription
SubjectAltNames.Builder

parseDelimitedFrom(InputStream input)

public static SubjectAltNames parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SubjectAltNames
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SubjectAltNames parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SubjectAltNames
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SubjectAltNames parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SubjectAltNames
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SubjectAltNames parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SubjectAltNames
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SubjectAltNames parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SubjectAltNames
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SubjectAltNames> parser()
Returns
TypeDescription
Parser<SubjectAltNames>

Methods

equals(Object obj)

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

getCustomSans(int index)

public X509Extension getCustomSans(int index)

Contains additional subject alternative name values. For each custom_san, the value field must contain an ASN.1 encoded UTF8String.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
X509Extension

getCustomSansCount()

public int getCustomSansCount()

Contains additional subject alternative name values. For each custom_san, the value field must contain an ASN.1 encoded UTF8String.

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

Returns
TypeDescription
int

getCustomSansList()

public List<X509Extension> getCustomSansList()

Contains additional subject alternative name values. For each custom_san, the value field must contain an ASN.1 encoded UTF8String.

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

Returns
TypeDescription
List<X509Extension>

getCustomSansOrBuilder(int index)

public X509ExtensionOrBuilder getCustomSansOrBuilder(int index)

Contains additional subject alternative name values. For each custom_san, the value field must contain an ASN.1 encoded UTF8String.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
X509ExtensionOrBuilder

getCustomSansOrBuilderList()

public List<? extends X509ExtensionOrBuilder> getCustomSansOrBuilderList()

Contains additional subject alternative name values. For each custom_san, the value field must contain an ASN.1 encoded UTF8String.

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

Returns
TypeDescription
List<? extends com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>

getDefaultInstanceForType()

public SubjectAltNames getDefaultInstanceForType()
Returns
TypeDescription
SubjectAltNames

getDnsNames(int index)

public String getDnsNames(int index)

Contains only valid, fully-qualified host names.

repeated string dns_names = 1;

Parameter
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

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

The count of dnsNames.

getDnsNamesList()

public ProtocolStringList getDnsNamesList()

Contains only valid, fully-qualified host names.

repeated string dns_names = 1;

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

The index of the element to return.

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

The index of the value to return.

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

The count of emailAddresses.

getEmailAddressesList()

public ProtocolStringList getEmailAddressesList()

Contains only valid RFC 2822 E-mail addresses.

repeated string email_addresses = 3;

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

The index of the element to return.

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

The index of the value to return.

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

A list containing the ipAddresses.

getParserForType()

public Parser<SubjectAltNames> getParserForType()
Returns
TypeDescription
Parser<SubjectAltNames>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUris(int index)

public String getUris(int index)

Contains only valid RFC 3986 URIs.

repeated string uris = 2;

Parameter
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

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

The count of uris.

getUrisList()

public ProtocolStringList getUrisList()

Contains only valid RFC 3986 URIs.

repeated string uris = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the uris.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public SubjectAltNames.Builder toBuilder()
Returns
TypeDescription
SubjectAltNames.Builder

writeTo(CodedOutputStream output)

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