Class: Google::Apis::PrivatecaV1::AllowedKeyType
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::AllowedKeyType
- 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
Describes a "type" of key that may be used in a Certificate issued from a CaPool. Note that a single AllowedKeyType may refer to either a fully- qualified key algorithm, such as RSA 4096, or a family of key algorithms, such as any RSA key.
Instance Attribute Summary collapse
-
#elliptic_curve ⇒ Google::Apis::PrivatecaV1::EcKeyType
Describes an Elliptic Curve key that may be used in a Certificate issued from a CaPool.
-
#rsa ⇒ Google::Apis::PrivatecaV1::RsaKeyType
Describes an RSA key that may be used in a Certificate issued from a CaPool.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllowedKeyType
constructor
A new instance of AllowedKeyType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AllowedKeyType
Returns a new instance of AllowedKeyType.
112 113 114 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 112 def initialize(**args) update!(**args) end |
Instance Attribute Details
#elliptic_curve ⇒ Google::Apis::PrivatecaV1::EcKeyType
Describes an Elliptic Curve key that may be used in a Certificate issued from
a CaPool.
Corresponds to the JSON property ellipticCurve
105 106 107 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 105 def elliptic_curve @elliptic_curve end |
#rsa ⇒ Google::Apis::PrivatecaV1::RsaKeyType
Describes an RSA key that may be used in a Certificate issued from a CaPool.
Corresponds to the JSON property rsa
110 111 112 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 110 def rsa @rsa end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
117 118 119 120 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 117 def update!(**args) @elliptic_curve = args[:elliptic_curve] if args.key?(:elliptic_curve) @rsa = args[:rsa] if args.key?(:rsa) end |