public final class Certificate extends GeneratedMessageV3 implements CertificateOrBuilder
A [Certificate][google.cloud.kms.v1.Certificate] represents an X.509 certificate used to authenticate HTTPS connections to EKM replicas.Protobuf type
google.cloud.kms.v1.Certificate
Modifier and Type | Class and Description |
---|---|
static class |
Certificate.Builder
A [Certificate][google.cloud.kms.v1.Certificate] represents an X.509
certificate used to authenticate HTTPS connections to EKM replicas.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ISSUER_FIELD_NUMBER |
static int |
NOT_AFTER_TIME_FIELD_NUMBER |
static int |
NOT_BEFORE_TIME_FIELD_NUMBER |
static int |
PARSED_FIELD_NUMBER |
static int |
RAW_DER_FIELD_NUMBER |
static int |
SERIAL_NUMBER_FIELD_NUMBER |
static int |
SHA256_FINGERPRINT_FIELD_NUMBER |
static int |
SUBJECT_ALTERNATIVE_DNS_NAMES_FIELD_NUMBER |
static int |
SUBJECT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int RAW_DER_FIELD_NUMBER
public static final int PARSED_FIELD_NUMBER
public static final int ISSUER_FIELD_NUMBER
public static final int SUBJECT_FIELD_NUMBER
public static final int SUBJECT_ALTERNATIVE_DNS_NAMES_FIELD_NUMBER
public static final int NOT_BEFORE_TIME_FIELD_NUMBER
public static final int NOT_AFTER_TIME_FIELD_NUMBER
public static final int SERIAL_NUMBER_FIELD_NUMBER
public static final int SHA256_FINGERPRINT_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public ByteString getRawDer()
Required. The raw certificate bytes in DER format.
bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED];
getRawDer
in interface CertificateOrBuilder
public boolean getParsed()
Output only. True if the certificate was parsed successfully.
bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParsed
in interface CertificateOrBuilder
public String getIssuer()
Output only. The issuer distinguished name in RFC 2253 format. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getIssuer
in interface CertificateOrBuilder
public ByteString getIssuerBytes()
Output only. The issuer distinguished name in RFC 2253 format. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getIssuerBytes
in interface CertificateOrBuilder
public String getSubject()
Output only. The subject distinguished name in RFC 2253 format. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSubject
in interface CertificateOrBuilder
public ByteString getSubjectBytes()
Output only. The subject distinguished name in RFC 2253 format. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSubjectBytes
in interface CertificateOrBuilder
public ProtocolStringList getSubjectAlternativeDnsNamesList()
Output only. The subject Alternative DNS names. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSubjectAlternativeDnsNamesList
in interface CertificateOrBuilder
public int getSubjectAlternativeDnsNamesCount()
Output only. The subject Alternative DNS names. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSubjectAlternativeDnsNamesCount
in interface CertificateOrBuilder
public String getSubjectAlternativeDnsNames(int index)
Output only. The subject Alternative DNS names. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSubjectAlternativeDnsNames
in interface CertificateOrBuilder
index
- The index of the element to return.public ByteString getSubjectAlternativeDnsNamesBytes(int index)
Output only. The subject Alternative DNS names. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSubjectAlternativeDnsNamesBytes
in interface CertificateOrBuilder
index
- The index of the value to return.public boolean hasNotBeforeTime()
Output only. The certificate is not valid before this time. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasNotBeforeTime
in interface CertificateOrBuilder
public Timestamp getNotBeforeTime()
Output only. The certificate is not valid before this time. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNotBeforeTime
in interface CertificateOrBuilder
public TimestampOrBuilder getNotBeforeTimeOrBuilder()
Output only. The certificate is not valid before this time. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
.google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNotBeforeTimeOrBuilder
in interface CertificateOrBuilder
public boolean hasNotAfterTime()
Output only. The certificate is not valid after this time. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasNotAfterTime
in interface CertificateOrBuilder
public Timestamp getNotAfterTime()
Output only. The certificate is not valid after this time. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNotAfterTime
in interface CertificateOrBuilder
public TimestampOrBuilder getNotAfterTimeOrBuilder()
Output only. The certificate is not valid after this time. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
.google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNotAfterTimeOrBuilder
in interface CertificateOrBuilder
public String getSerialNumber()
Output only. The certificate serial number as a hex string. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSerialNumber
in interface CertificateOrBuilder
public ByteString getSerialNumberBytes()
Output only. The certificate serial number as a hex string. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSerialNumberBytes
in interface CertificateOrBuilder
public String getSha256Fingerprint()
Output only. The SHA-256 certificate fingerprint as a hex string. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSha256Fingerprint
in interface CertificateOrBuilder
public ByteString getSha256FingerprintBytes()
Output only. The SHA-256 certificate fingerprint as a hex string. Only present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSha256FingerprintBytes
in interface CertificateOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Certificate parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Certificate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Certificate parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Certificate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Certificate parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Certificate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Certificate parseFrom(InputStream input) throws IOException
IOException
public static Certificate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Certificate parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Certificate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Certificate parseFrom(CodedInputStream input) throws IOException
IOException
public static Certificate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Certificate.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Certificate.Builder newBuilder()
public static Certificate.Builder newBuilder(Certificate prototype)
public Certificate.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Certificate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Certificate getDefaultInstance()
public static Parser<Certificate> parser()
public Parser<Certificate> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Certificate getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.