Package com.google.cloud.kms.v1
Interface CertificateOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Certificate
,Certificate.Builder
public interface CertificateOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.ByteString
getRawDer()
Required.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.List<String>
getSubjectAlternativeDnsNamesList()
Output only.com.google.protobuf.ByteString
getSubjectBytes()
Output only.boolean
hasNotAfterTime()
Output only.boolean
hasNotBeforeTime()
Output only.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getRawDer
com.google.protobuf.ByteString getRawDer()
Required. The raw certificate bytes in DER format.
bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The rawDer.
-
getParsed
boolean getParsed()
Output only. True if the certificate was parsed successfully.
bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The parsed.
-
getIssuer
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];
- Returns:
- The issuer.
-
getIssuerBytes
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];
- Returns:
- The bytes for issuer.
-
getSubject
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];
- Returns:
- The subject.
-
getSubjectBytes
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];
- Returns:
- The bytes for subject.
-
getSubjectAlternativeDnsNamesList
List<String> 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];
- Returns:
- A list containing the subjectAlternativeDnsNames.
-
getSubjectAlternativeDnsNamesCount
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];
- Returns:
- The count of subjectAlternativeDnsNames.
-
getSubjectAlternativeDnsNames
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];
- Parameters:
index
- The index of the element to return.- Returns:
- The subjectAlternativeDnsNames at the given index.
-
getSubjectAlternativeDnsNamesBytes
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];
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the subjectAlternativeDnsNames at the given index.
-
hasNotBeforeTime
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];
- Returns:
- Whether the notBeforeTime field is set.
-
getNotBeforeTime
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];
- Returns:
- The notBeforeTime.
-
getNotBeforeTimeOrBuilder
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];
-
hasNotAfterTime
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];
- Returns:
- Whether the notAfterTime field is set.
-
getNotAfterTime
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];
- Returns:
- The notAfterTime.
-
getNotAfterTimeOrBuilder
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];
-
getSerialNumber
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];
- Returns:
- The serialNumber.
-
getSerialNumberBytes
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];
- Returns:
- The bytes for serialNumber.
-
getSha256Fingerprint
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];
- Returns:
- The sha256Fingerprint.
-
getSha256FingerprintBytes
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];
- Returns:
- The bytes for sha256Fingerprint.
-
-