Class: R509::Config::CaProfile

Inherits:
Object
  • Object
show all
Defined in:
lib/r509/config.rb

Overview

Provides access to configuration profiles

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (CaProfile) initialize(opts = {})

A new instance of CaProfile

Parameters:

  • [String] (Hash)

    a customizable set of options

  • [Array] (Hash)

    a customizable set of options

  • [R509::Config::SubjectItemPolicy] (Hash)

    a customizable set of options



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