Class: Google::Apis::PrivatecaV1::CertificateConfig
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::CertificateConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/privateca_v1/classes.rb,
lib/google/apis/privateca_v1/representations.rb,
lib/google/apis/privateca_v1/representations.rb
Overview
A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1.
Instance Attribute Summary collapse
-
#public_key ⇒ Google::Apis::PrivatecaV1::PublicKey
A PublicKey describes a public key.
-
#subject_config ⇒ Google::Apis::PrivatecaV1::SubjectConfig
These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate.
-
#x509_config ⇒ Google::Apis::PrivatecaV1::X509Parameters
An 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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CertificateConfig
constructor
A new instance of CertificateConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CertificateConfig
Returns a new instance of CertificateConfig.
643 644 645 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 643 def initialize(**args) update!(**args) end |
Instance Attribute Details
#public_key ⇒ Google::Apis::PrivatecaV1::PublicKey
A PublicKey describes a public key.
Corresponds to the JSON property publicKey
628 629 630 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 628 def public_key @public_key end |
#subject_config ⇒ Google::Apis::PrivatecaV1::SubjectConfig
These values are used to create the distinguished name and subject alternative
name fields in an X.509 certificate.
Corresponds to the JSON property subjectConfig
634 635 636 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 634 def subject_config @subject_config end |
#x509_config ⇒ Google::Apis::PrivatecaV1::X509Parameters
An 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.
Corresponds to the JSON property x509Config
641 642 643 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 641 def x509_config @x509_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
648 649 650 651 652 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 648 def update!(**args) @public_key = args[:public_key] if args.key?(:public_key) @subject_config = args[:subject_config] if args.key?(:subject_config) @x509_config = args[:x509_config] if args.key?(:x509_config) end |