Class: Google::Apis::PrivatecaV1::X509Extension
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::X509Extension
- 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
An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
Instance Attribute Summary collapse
-
#critical ⇒ Boolean
(also: #critical?)
Optional.
-
#object_id_prop ⇒ Google::Apis::PrivatecaV1::ObjectIdProp
An ObjectId specifies an object identifier (OID).
-
#value ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ X509Extension
constructor
A new instance of X509Extension.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ X509Extension
Returns a new instance of X509Extension.
2731 2732 2733 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2731 def initialize(**args) update!(**args) end |
Instance Attribute Details
#critical ⇒ Boolean Also known as: critical?
Optional. Indicates whether or not this extension is critical (i.e., if the
client does not know how to handle this extension, the client should consider
this to be an error).
Corresponds to the JSON property critical
2716 2717 2718 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2716 def critical @critical end |
#object_id_prop ⇒ Google::Apis::PrivatecaV1::ObjectIdProp
An ObjectId specifies an object identifier (OID). These provide context and
describe types in ASN.1 messages.
Corresponds to the JSON property objectId
2723 2724 2725 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2723 def object_id_prop @object_id_prop end |
#value ⇒ String
Required. The value of this X.509 extension.
Corresponds to the JSON property value
NOTE: Values are automatically base64 encoded/decoded in the client library.
2729 2730 2731 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2729 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2736 2737 2738 2739 2740 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2736 def update!(**args) @critical = args[:critical] if args.key?(:critical) @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) @value = args[:value] if args.key?(:value) end |