Class X509Parameters

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

@Generated public final class X509Parameters extends com.google.protobuf.GeneratedMessage implements X509ParametersOrBuilder
 An [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] is
 used to describe certain fields of an X.509 certificate, such as the key
 usage fields, fields specific to CA certificates, certificate policy
 extensions and custom extensions.
 
Protobuf type google.cloud.security.privateca.v1.X509Parameters
See Also:
  • Field Details

    • KEY_USAGE_FIELD_NUMBER

      public static final int KEY_USAGE_FIELD_NUMBER
      See Also:
    • CA_OPTIONS_FIELD_NUMBER

      public static final int CA_OPTIONS_FIELD_NUMBER
      See Also:
    • POLICY_IDS_FIELD_NUMBER

      public static final int POLICY_IDS_FIELD_NUMBER
      See Also:
    • AIA_OCSP_SERVERS_FIELD_NUMBER

      public static final int AIA_OCSP_SERVERS_FIELD_NUMBER
      See Also:
    • NAME_CONSTRAINTS_FIELD_NUMBER

      public static final int NAME_CONSTRAINTS_FIELD_NUMBER
      See Also:
    • ADDITIONAL_EXTENSIONS_FIELD_NUMBER

      public static final int ADDITIONAL_EXTENSIONS_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
    • hasKeyUsage

      public boolean hasKeyUsage()
       Optional. Indicates the intended use for keys that correspond to a
       certificate.
       
      .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasKeyUsage in interface X509ParametersOrBuilder
      Returns:
      Whether the keyUsage field is set.
    • getKeyUsage

      public KeyUsage getKeyUsage()
       Optional. Indicates the intended use for keys that correspond to a
       certificate.
       
      .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeyUsage in interface X509ParametersOrBuilder
      Returns:
      The keyUsage.
    • getKeyUsageOrBuilder

      public KeyUsageOrBuilder getKeyUsageOrBuilder()
       Optional. Indicates the intended use for keys that correspond to a
       certificate.
       
      .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeyUsageOrBuilder in interface X509ParametersOrBuilder
    • hasCaOptions

      public boolean hasCaOptions()
       Optional. Describes options in this
       [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
       are relevant in a CA certificate. If not specified, a default basic
       constraints extension with `is_ca=false` will be added for leaf
       certificates.
       
      .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCaOptions in interface X509ParametersOrBuilder
      Returns:
      Whether the caOptions field is set.
    • getCaOptions

      public X509Parameters.CaOptions getCaOptions()
       Optional. Describes options in this
       [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
       are relevant in a CA certificate. If not specified, a default basic
       constraints extension with `is_ca=false` will be added for leaf
       certificates.
       
      .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCaOptions in interface X509ParametersOrBuilder
      Returns:
      The caOptions.
    • getCaOptionsOrBuilder

      public X509Parameters.CaOptionsOrBuilder getCaOptionsOrBuilder()
       Optional. Describes options in this
       [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
       are relevant in a CA certificate. If not specified, a default basic
       constraints extension with `is_ca=false` will be added for leaf
       certificates.
       
      .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCaOptionsOrBuilder in interface X509ParametersOrBuilder
    • getPolicyIdsList

      public List<ObjectId> getPolicyIdsList()
       Optional. Describes the X.509 certificate policy object identifiers, per
       https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
       
      repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicyIdsList in interface X509ParametersOrBuilder
    • getPolicyIdsOrBuilderList

      public List<? extends ObjectIdOrBuilder> getPolicyIdsOrBuilderList()
       Optional. Describes the X.509 certificate policy object identifiers, per
       https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
       
      repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicyIdsOrBuilderList in interface X509ParametersOrBuilder
    • getPolicyIdsCount

      public int getPolicyIdsCount()
       Optional. Describes the X.509 certificate policy object identifiers, per
       https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
       
      repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicyIdsCount in interface X509ParametersOrBuilder
    • getPolicyIds

      public ObjectId getPolicyIds(int index)
       Optional. Describes the X.509 certificate policy object identifiers, per
       https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
       
      repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicyIds in interface X509ParametersOrBuilder
    • getPolicyIdsOrBuilder

      public ObjectIdOrBuilder getPolicyIdsOrBuilder(int index)
       Optional. Describes the X.509 certificate policy object identifiers, per
       https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
       
      repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicyIdsOrBuilder in interface X509ParametersOrBuilder
    • getAiaOcspServersList

      public com.google.protobuf.ProtocolStringList getAiaOcspServersList()
       Optional. Describes Online Certificate Status Protocol (OCSP) endpoint
       addresses that appear in the "Authority Information Access" extension in
       the certificate.
       
      repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAiaOcspServersList in interface X509ParametersOrBuilder
      Returns:
      A list containing the aiaOcspServers.
    • getAiaOcspServersCount

      public int getAiaOcspServersCount()
       Optional. Describes Online Certificate Status Protocol (OCSP) endpoint
       addresses that appear in the "Authority Information Access" extension in
       the certificate.
       
      repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAiaOcspServersCount in interface X509ParametersOrBuilder
      Returns:
      The count of aiaOcspServers.
    • getAiaOcspServers

      public String getAiaOcspServers(int index)
       Optional. Describes Online Certificate Status Protocol (OCSP) endpoint
       addresses that appear in the "Authority Information Access" extension in
       the certificate.
       
      repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAiaOcspServers in interface X509ParametersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The aiaOcspServers at the given index.
    • getAiaOcspServersBytes

      public com.google.protobuf.ByteString getAiaOcspServersBytes(int index)
       Optional. Describes Online Certificate Status Protocol (OCSP) endpoint
       addresses that appear in the "Authority Information Access" extension in
       the certificate.
       
      repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAiaOcspServersBytes in interface X509ParametersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the aiaOcspServers at the given index.
    • hasNameConstraints

      public boolean hasNameConstraints()
       Optional. Describes the X.509 name constraints extension.
       
      .google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasNameConstraints in interface X509ParametersOrBuilder
      Returns:
      Whether the nameConstraints field is set.
    • getNameConstraints

      public X509Parameters.NameConstraints getNameConstraints()
       Optional. Describes the X.509 name constraints extension.
       
      .google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNameConstraints in interface X509ParametersOrBuilder
      Returns:
      The nameConstraints.
    • getNameConstraintsOrBuilder

      public X509Parameters.NameConstraintsOrBuilder getNameConstraintsOrBuilder()
       Optional. Describes the X.509 name constraints extension.
       
      .google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNameConstraintsOrBuilder in interface X509ParametersOrBuilder
    • getAdditionalExtensionsList

      public List<X509Extension> getAdditionalExtensionsList()
       Optional. Describes custom X.509 extensions.
       
      repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdditionalExtensionsList in interface X509ParametersOrBuilder
    • getAdditionalExtensionsOrBuilderList

      public List<? extends X509ExtensionOrBuilder> getAdditionalExtensionsOrBuilderList()
       Optional. Describes custom X.509 extensions.
       
      repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdditionalExtensionsOrBuilderList in interface X509ParametersOrBuilder
    • getAdditionalExtensionsCount

      public int getAdditionalExtensionsCount()
       Optional. Describes custom X.509 extensions.
       
      repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdditionalExtensionsCount in interface X509ParametersOrBuilder
    • getAdditionalExtensions

      public X509Extension getAdditionalExtensions(int index)
       Optional. Describes custom X.509 extensions.
       
      repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdditionalExtensions in interface X509ParametersOrBuilder
    • getAdditionalExtensionsOrBuilder

      public X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder(int index)
       Optional. Describes custom X.509 extensions.
       
      repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdditionalExtensionsOrBuilder in interface X509ParametersOrBuilder
    • 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 X509Parameters parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static X509Parameters.Builder newBuilder()
    • newBuilder

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

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

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

      public static X509Parameters getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<X509Parameters> 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 X509Parameters getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder