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
DNS_NAMES_FIELD_NUMBER
public static final int DNS_NAMES_FIELD_NUMBER
Field Value
EMAIL_ADDRESSES_FIELD_NUMBER
public static final int EMAIL_ADDRESSES_FIELD_NUMBER
Field Value
IP_ADDRESSES_FIELD_NUMBER
public static final int IP_ADDRESSES_FIELD_NUMBER
Field Value
URIS_FIELD_NUMBER
public static final int URIS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SubjectAltNames getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SubjectAltNames.Builder newBuilder()
Returns
newBuilder(SubjectAltNames prototype)
public static SubjectAltNames.Builder newBuilder(SubjectAltNames prototype)
Parameter
Returns
public static SubjectAltNames parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SubjectAltNames parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SubjectAltNames parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SubjectAltNames parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SubjectAltNames parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SubjectAltNames parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SubjectAltNames parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SubjectAltNames parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SubjectAltNames parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SubjectAltNames parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SubjectAltNames parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SubjectAltNames parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SubjectAltNames> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Returns
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
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
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
Returns
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
Type | Description |
List<? extends com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> | |
getDefaultInstanceForType()
public SubjectAltNames getDefaultInstanceForType()
Returns
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
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
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
getParserForType()
public Parser<SubjectAltNames> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SubjectAltNames.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SubjectAltNames.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SubjectAltNames.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions