Package com.google.cloud.kms.v1
Class Certificate
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.kms.v1.Certificate
-
- All Implemented Interfaces:
CertificateOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Certificate extends com.google.protobuf.GeneratedMessageV3 implements CertificateOrBuilder
A [Certificate][google.cloud.kms.v1.Certificate] represents an X.509 certificate used to authenticate HTTPS connections to EKM replicas.
Protobuf typegoogle.cloud.kms.v1.Certificate
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static Certificate
getDefaultInstance()
Certificate
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getIssuer()
Output only.com.google.protobuf.ByteString
getIssuerBytes()
Output only.com.google.protobuf.Timestamp
getNotAfterTime()
Output only.com.google.protobuf.TimestampOrBuilder
getNotAfterTimeOrBuilder()
Output only.com.google.protobuf.Timestamp
getNotBeforeTime()
Output only.com.google.protobuf.TimestampOrBuilder
getNotBeforeTimeOrBuilder()
Output only.boolean
getParsed()
Output only.com.google.protobuf.Parser<Certificate>
getParserForType()
com.google.protobuf.ByteString
getRawDer()
Required.int
getSerializedSize()
String
getSerialNumber()
Output only.com.google.protobuf.ByteString
getSerialNumberBytes()
Output only.String
getSha256Fingerprint()
Output only.com.google.protobuf.ByteString
getSha256FingerprintBytes()
Output only.String
getSubject()
Output only.String
getSubjectAlternativeDnsNames(int index)
Output only.com.google.protobuf.ByteString
getSubjectAlternativeDnsNamesBytes(int index)
Output only.int
getSubjectAlternativeDnsNamesCount()
Output only.com.google.protobuf.ProtocolStringList
getSubjectAlternativeDnsNamesList()
Output only.com.google.protobuf.ByteString
getSubjectBytes()
Output only.int
hashCode()
boolean
hasNotAfterTime()
Output only.boolean
hasNotBeforeTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Certificate.Builder
newBuilder()
static Certificate.Builder
newBuilder(Certificate prototype)
Certificate.Builder
newBuilderForType()
protected Certificate.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Certificate
parseDelimitedFrom(InputStream input)
static Certificate
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Certificate
parseFrom(byte[] data)
static Certificate
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Certificate
parseFrom(com.google.protobuf.ByteString data)
static Certificate
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Certificate
parseFrom(com.google.protobuf.CodedInputStream input)
static Certificate
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Certificate
parseFrom(InputStream input)
static Certificate
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Certificate
parseFrom(ByteBuffer data)
static Certificate
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Certificate>
parser()
Certificate.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
RAW_DER_FIELD_NUMBER
public static final int RAW_DER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSED_FIELD_NUMBER
public static final int PARSED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ISSUER_FIELD_NUMBER
public static final int ISSUER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUBJECT_FIELD_NUMBER
public static final int SUBJECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUBJECT_ALTERNATIVE_DNS_NAMES_FIELD_NUMBER
public static final int SUBJECT_ALTERNATIVE_DNS_NAMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOT_BEFORE_TIME_FIELD_NUMBER
public static final int NOT_BEFORE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOT_AFTER_TIME_FIELD_NUMBER
public static final int NOT_AFTER_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERIAL_NUMBER_FIELD_NUMBER
public static final int SERIAL_NUMBER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHA256_FINGERPRINT_FIELD_NUMBER
public static final int SHA256_FINGERPRINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
getRawDer
public com.google.protobuf.ByteString getRawDer()
Required. The raw certificate bytes in DER format.
bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getRawDer
in interfaceCertificateOrBuilder
- Returns:
- The rawDer.
-
getParsed
public boolean getParsed()
Output only. True if the certificate was parsed successfully.
bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getParsed
in interfaceCertificateOrBuilder
- Returns:
- The parsed.
-
getIssuer
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];
- Specified by:
getIssuer
in interfaceCertificateOrBuilder
- Returns:
- The issuer.
-
getIssuerBytes
public com.google.protobuf.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];
- Specified by:
getIssuerBytes
in interfaceCertificateOrBuilder
- Returns:
- The bytes for issuer.
-
getSubject
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];
- Specified by:
getSubject
in interfaceCertificateOrBuilder
- Returns:
- The subject.
-
getSubjectBytes
public com.google.protobuf.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];
- Specified by:
getSubjectBytes
in interfaceCertificateOrBuilder
- Returns:
- The bytes for subject.
-
getSubjectAlternativeDnsNamesList
public com.google.protobuf.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];
- Specified by:
getSubjectAlternativeDnsNamesList
in interfaceCertificateOrBuilder
- Returns:
- A list containing the subjectAlternativeDnsNames.
-
getSubjectAlternativeDnsNamesCount
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];
- Specified by:
getSubjectAlternativeDnsNamesCount
in interfaceCertificateOrBuilder
- Returns:
- The count of subjectAlternativeDnsNames.
-
getSubjectAlternativeDnsNames
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];
- Specified by:
getSubjectAlternativeDnsNames
in interfaceCertificateOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The subjectAlternativeDnsNames at the given index.
-
getSubjectAlternativeDnsNamesBytes
public com.google.protobuf.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];
- Specified by:
getSubjectAlternativeDnsNamesBytes
in interfaceCertificateOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the subjectAlternativeDnsNames at the given index.
-
hasNotBeforeTime
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];
- Specified by:
hasNotBeforeTime
in interfaceCertificateOrBuilder
- Returns:
- Whether the notBeforeTime field is set.
-
getNotBeforeTime
public com.google.protobuf.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];
- Specified by:
getNotBeforeTime
in interfaceCertificateOrBuilder
- Returns:
- The notBeforeTime.
-
getNotBeforeTimeOrBuilder
public com.google.protobuf.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];
- Specified by:
getNotBeforeTimeOrBuilder
in interfaceCertificateOrBuilder
-
hasNotAfterTime
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];
- Specified by:
hasNotAfterTime
in interfaceCertificateOrBuilder
- Returns:
- Whether the notAfterTime field is set.
-
getNotAfterTime
public com.google.protobuf.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];
- Specified by:
getNotAfterTime
in interfaceCertificateOrBuilder
- Returns:
- The notAfterTime.
-
getNotAfterTimeOrBuilder
public com.google.protobuf.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];
- Specified by:
getNotAfterTimeOrBuilder
in interfaceCertificateOrBuilder
-
getSerialNumber
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];
- Specified by:
getSerialNumber
in interfaceCertificateOrBuilder
- Returns:
- The serialNumber.
-
getSerialNumberBytes
public com.google.protobuf.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];
- Specified by:
getSerialNumberBytes
in interfaceCertificateOrBuilder
- Returns:
- The bytes for serialNumber.
-
getSha256Fingerprint
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];
- Specified by:
getSha256Fingerprint
in interfaceCertificateOrBuilder
- Returns:
- The sha256Fingerprint.
-
getSha256FingerprintBytes
public com.google.protobuf.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];
- Specified by:
getSha256FingerprintBytes
in interfaceCertificateOrBuilder
- Returns:
- The bytes for sha256Fingerprint.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Certificate parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Certificate parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Certificate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Certificate parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Certificate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Certificate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Certificate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Certificate.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Certificate.Builder newBuilder()
-
newBuilder
public static Certificate.Builder newBuilder(Certificate prototype)
-
toBuilder
public Certificate.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Certificate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Certificate getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Certificate> parser()
-
getParserForType
public com.google.protobuf.Parser<Certificate> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Certificate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-