Class CertificateConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.security.privateca.v1.CertificateConfig
All Implemented Interfaces:
CertificateConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CertificateConfig extends com.google.protobuf.GeneratedMessage implements CertificateConfigOrBuilder
 A [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig]
 describes an X.509 certificate or CSR that is to be created, as an
 alternative to using ASN.1.
 
Protobuf type google.cloud.security.privateca.v1.CertificateConfig
See Also:
  • Field Details

    • SUBJECT_CONFIG_FIELD_NUMBER

      public static final int SUBJECT_CONFIG_FIELD_NUMBER
      See Also:
    • X509_CONFIG_FIELD_NUMBER

      public static final int X509_CONFIG_FIELD_NUMBER
      See Also:
    • PUBLIC_KEY_FIELD_NUMBER

      public static final int PUBLIC_KEY_FIELD_NUMBER
      See Also:
    • SUBJECT_KEY_ID_FIELD_NUMBER

      public static final int SUBJECT_KEY_ID_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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasSubjectConfig

      public boolean hasSubjectConfig()
       Required. Specifies some of the values in a certificate that are related to
       the subject.
       
      .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSubjectConfig in interface CertificateConfigOrBuilder
      Returns:
      Whether the subjectConfig field is set.
    • getSubjectConfig

      public CertificateConfig.SubjectConfig getSubjectConfig()
       Required. Specifies some of the values in a certificate that are related to
       the subject.
       
      .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSubjectConfig in interface CertificateConfigOrBuilder
      Returns:
      The subjectConfig.
    • getSubjectConfigOrBuilder

      public CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder()
       Required. Specifies some of the values in a certificate that are related to
       the subject.
       
      .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSubjectConfigOrBuilder in interface CertificateConfigOrBuilder
    • hasX509Config

      public boolean hasX509Config()
       Required. Describes how some of the technical X.509 fields in a certificate
       should be populated.
       
      .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasX509Config in interface CertificateConfigOrBuilder
      Returns:
      Whether the x509Config field is set.
    • getX509Config

      public X509Parameters getX509Config()
       Required. Describes how some of the technical X.509 fields in a certificate
       should be populated.
       
      .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getX509Config in interface CertificateConfigOrBuilder
      Returns:
      The x509Config.
    • getX509ConfigOrBuilder

      public X509ParametersOrBuilder getX509ConfigOrBuilder()
       Required. Describes how some of the technical X.509 fields in a certificate
       should be populated.
       
      .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getX509ConfigOrBuilder in interface CertificateConfigOrBuilder
    • hasPublicKey

      public boolean hasPublicKey()
       Optional. The public key that corresponds to this config. This is, for
       example, used when issuing
       [Certificates][google.cloud.security.privateca.v1.Certificate], but not
       when creating a self-signed
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       or
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       CSR.
       
      .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPublicKey in interface CertificateConfigOrBuilder
      Returns:
      Whether the publicKey field is set.
    • getPublicKey

      public PublicKey getPublicKey()
       Optional. The public key that corresponds to this config. This is, for
       example, used when issuing
       [Certificates][google.cloud.security.privateca.v1.Certificate], but not
       when creating a self-signed
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       or
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       CSR.
       
      .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKey in interface CertificateConfigOrBuilder
      Returns:
      The publicKey.
    • getPublicKeyOrBuilder

      public PublicKeyOrBuilder getPublicKeyOrBuilder()
       Optional. The public key that corresponds to this config. This is, for
       example, used when issuing
       [Certificates][google.cloud.security.privateca.v1.Certificate], but not
       when creating a self-signed
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       or
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       CSR.
       
      .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublicKeyOrBuilder in interface CertificateConfigOrBuilder
    • hasSubjectKeyId

      public boolean hasSubjectKeyId()
       Optional. When specified this provides a custom SKI to be used in the
       certificate. This should only be used to maintain a SKI of an existing CA
       originally created outside CA service, which was not generated using method
       (1) described in RFC 5280 section 4.2.1.2.
       
      .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSubjectKeyId in interface CertificateConfigOrBuilder
      Returns:
      Whether the subjectKeyId field is set.
    • getSubjectKeyId

      public CertificateConfig.KeyId getSubjectKeyId()
       Optional. When specified this provides a custom SKI to be used in the
       certificate. This should only be used to maintain a SKI of an existing CA
       originally created outside CA service, which was not generated using method
       (1) described in RFC 5280 section 4.2.1.2.
       
      .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubjectKeyId in interface CertificateConfigOrBuilder
      Returns:
      The subjectKeyId.
    • getSubjectKeyIdOrBuilder

      public CertificateConfig.KeyIdOrBuilder getSubjectKeyIdOrBuilder()
       Optional. When specified this provides a custom SKI to be used in the
       certificate. This should only be used to maintain a SKI of an existing CA
       originally created outside CA service, which was not generated using method
       (1) described in RFC 5280 section 4.2.1.2.
       
      .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubjectKeyIdOrBuilder in interface CertificateConfigOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CertificateConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CertificateConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CertificateConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CertificateConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CertificateConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CertificateConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CertificateConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CertificateConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CertificateConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CertificateConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CertificateConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CertificateConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CertificateConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CertificateConfig.Builder newBuilder()
    • newBuilder

      public static CertificateConfig.Builder newBuilder(CertificateConfig prototype)
    • toBuilder

      public CertificateConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CertificateConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CertificateConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CertificateConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<CertificateConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CertificateConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder