Class: R509::Config::CaProfile
- Inherits:
-
Object
- Object
- R509::Config::CaProfile
- Defined in:
- lib/r509/config.rb
Overview
Provides access to configuration profiles
Instance Attribute Summary (collapse)
-
- (Object) basic_constraints
readonly
Returns the value of attribute basic_constraints.
-
- (Object) certificate_policies
readonly
Returns the value of attribute certificate_policies.
-
- (Object) extended_key_usage
readonly
Returns the value of attribute extended_key_usage.
-
- (Object) key_usage
readonly
Returns the value of attribute key_usage.
-
- (Object) subject_item_policy
readonly
Returns the value of attribute subject_item_policy.
Instance Method Summary (collapse)
-
- (CaProfile) initialize(opts = {})
constructor
A new instance of CaProfile.
Constructor Details
- (CaProfile) initialize(opts = {})
A new instance of CaProfile
23 24 25 26 27 28 29 30 31 |
# File 'lib/r509/config.rb', line 23 def initialize(opts = {}) @basic_constraints = opts[:basic_constraints] @key_usage = opts[:key_usage] @extended_key_usage = opts[:extended_key_usage] @certificate_policies = opts[:certificate_policies] if opts.has_key?(:subject_item_policy) and not opts[:subject_item_policy].kind_of?(R509::Config::SubjectItemPolicy) end @subject_item_policy = opts[:subject_item_policy] || nil end |
Instance Attribute Details
- (Object) basic_constraints (readonly)
Returns the value of attribute basic_constraints
15 16 17 |
# File 'lib/r509/config.rb', line 15 def basic_constraints @basic_constraints end |
- (Object) certificate_policies (readonly)
Returns the value of attribute certificate_policies
15 16 17 |
# File 'lib/r509/config.rb', line 15 def certificate_policies @certificate_policies end |
- (Object) extended_key_usage (readonly)
Returns the value of attribute extended_key_usage
15 16 17 |
# File 'lib/r509/config.rb', line 15 def extended_key_usage @extended_key_usage end |
- (Object) key_usage (readonly)
Returns the value of attribute key_usage
15 16 17 |
# File 'lib/r509/config.rb', line 15 def key_usage @key_usage end |
- (Object) subject_item_policy (readonly)
Returns the value of attribute subject_item_policy
15 16 17 |
# File 'lib/r509/config.rb', line 15 def subject_item_policy @subject_item_policy end |