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 classCertificate.BuilderA [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 intISSUER_FIELD_NUMBERstatic intNOT_AFTER_TIME_FIELD_NUMBERstatic intNOT_BEFORE_TIME_FIELD_NUMBERstatic intPARSED_FIELD_NUMBERstatic intRAW_DER_FIELD_NUMBERstatic intSERIAL_NUMBER_FIELD_NUMBERstatic intSHA256_FINGERPRINT_FIELD_NUMBERstatic intSUBJECT_ALTERNATIVE_DNS_NAMES_FIELD_NUMBERstatic intSUBJECT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static CertificategetDefaultInstance()CertificategetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetIssuer()Output only.com.google.protobuf.ByteStringgetIssuerBytes()Output only.com.google.protobuf.TimestampgetNotAfterTime()Output only.com.google.protobuf.TimestampOrBuildergetNotAfterTimeOrBuilder()Output only.com.google.protobuf.TimestampgetNotBeforeTime()Output only.com.google.protobuf.TimestampOrBuildergetNotBeforeTimeOrBuilder()Output only.booleangetParsed()Output only.com.google.protobuf.Parser<Certificate>getParserForType()com.google.protobuf.ByteStringgetRawDer()Required.intgetSerializedSize()StringgetSerialNumber()Output only.com.google.protobuf.ByteStringgetSerialNumberBytes()Output only.StringgetSha256Fingerprint()Output only.com.google.protobuf.ByteStringgetSha256FingerprintBytes()Output only.StringgetSubject()Output only.StringgetSubjectAlternativeDnsNames(int index)Output only.com.google.protobuf.ByteStringgetSubjectAlternativeDnsNamesBytes(int index)Output only.intgetSubjectAlternativeDnsNamesCount()Output only.com.google.protobuf.ProtocolStringListgetSubjectAlternativeDnsNamesList()Output only.com.google.protobuf.ByteStringgetSubjectBytes()Output only.inthashCode()booleanhasNotAfterTime()Output only.booleanhasNotBeforeTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Certificate.BuildernewBuilder()static Certificate.BuildernewBuilder(Certificate prototype)Certificate.BuildernewBuilderForType()protected Certificate.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CertificateparseDelimitedFrom(InputStream input)static CertificateparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateparseFrom(byte[] data)static CertificateparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateparseFrom(com.google.protobuf.ByteString data)static CertificateparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateparseFrom(com.google.protobuf.CodedInputStream input)static CertificateparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateparseFrom(InputStream input)static CertificateparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateparseFrom(ByteBuffer data)static CertificateparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Certificate>parser()Certificate.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getRawDerin 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:
getParsedin 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:
getIssuerin 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:
getIssuerBytesin 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:
getSubjectin 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:
getSubjectBytesin 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:
getSubjectAlternativeDnsNamesListin 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:
getSubjectAlternativeDnsNamesCountin 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:
getSubjectAlternativeDnsNamesin 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:
getSubjectAlternativeDnsNamesBytesin 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:
hasNotBeforeTimein 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:
getNotBeforeTimein 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:
getNotBeforeTimeOrBuilderin 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:
hasNotAfterTimein 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:
getNotAfterTimein 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:
getNotAfterTimeOrBuilderin 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:
getSerialNumberin 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:
getSerialNumberBytesin 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:
getSha256Fingerprintin 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:
getSha256FingerprintBytesin interfaceCertificateOrBuilder- Returns:
- The bytes for sha256Fingerprint.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Certificate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Certificate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-