Package com.google.cloud.kms.v1
Class Certificate
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class Certificate
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA [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.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Certificatestatic final com.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.com.google.protobuf.Parser<Certificate>com.google.protobuf.ByteStringRequired.intOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.getSubjectAlternativeDnsNames(int index) Output only.com.google.protobuf.ByteStringgetSubjectAlternativeDnsNamesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.com.google.protobuf.ByteStringOutput only.inthashCode()booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Certificate.Builderstatic Certificate.BuildernewBuilder(Certificate prototype) protected Certificate.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RAW_DER_FIELD_NUMBER
public static final int RAW_DER_FIELD_NUMBER- See Also:
-
PARSED_FIELD_NUMBER
public static final int PARSED_FIELD_NUMBER- See Also:
-
ISSUER_FIELD_NUMBER
public static final int ISSUER_FIELD_NUMBER- See Also:
-
SUBJECT_FIELD_NUMBER
public static final int SUBJECT_FIELD_NUMBER- See Also:
-
SUBJECT_ALTERNATIVE_DNS_NAMES_FIELD_NUMBER
public static final int SUBJECT_ALTERNATIVE_DNS_NAMES_FIELD_NUMBER- See Also:
-
NOT_BEFORE_TIME_FIELD_NUMBER
public static final int NOT_BEFORE_TIME_FIELD_NUMBER- See Also:
-
NOT_AFTER_TIME_FIELD_NUMBER
public static final int NOT_AFTER_TIME_FIELD_NUMBER- See Also:
-
SERIAL_NUMBER_FIELD_NUMBER
public static final int SERIAL_NUMBER_FIELD_NUMBER- See Also:
-
SHA256_FINGERPRINT_FIELD_NUMBER
public static final int SHA256_FINGERPRINT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
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
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
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
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
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static Certificate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Certificate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Certificate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Certificate.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-