Class: HealthVault::WCData::Types::Sig
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Types::Sig
- Defined in:
- lib/wc_data/generated/types/sig.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#data ⇒ Object
returns: a HealthVault::WCData::Types::String512.
-
#data=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::Types::String512.
-
#digest_method ⇒ Object
returns: a HealthVault::WCData::Types::String16.
-
#digest_method=(value) ⇒ Object
remarks: An example hash algorithm name is SHA1.
-
#initialize ⇒ Sig
constructor
A new instance of Sig.
-
#sig_method ⇒ Object
returns: a HealthVault::WCData::Types::String16.
-
#sig_method=(value) ⇒ Object
remarks: For example, RSA-SHA1, which implies using SHA1 to do the hash and RSA for signing.
-
#thumbprint ⇒ Object
returns: a String.
-
#thumbprint=(value) ⇒ Object
remarks: An application may have multiple public keys associated with its application id.
Methods inherited from ComplexType
#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?
Constructor Details
#initialize ⇒ Sig
Returns a new instance of Sig.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/wc_data/generated/types/sig.rb', line 75 def initialize super self.tag_name = 'sig' @children['data'] = {:name => 'data', :class => HealthVault::WCData::Types::String512, :value => nil, :min => 1, :max => 1, :order => 0, :place => :extension, :choice => 0 } @children['data'][:value] = HealthVault::WCData::Types::String512.new @children['digestMethod'] = {:name => 'digestMethod', :class => HealthVault::WCData::Types::String16, :value => nil, :min => 1, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['digestMethod'][:value] = HealthVault::WCData::Types::String16.new @children['sigMethod'] = {:name => 'sigMethod', :class => HealthVault::WCData::Types::String16, :value => nil, :min => 1, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['sigMethod'][:value] = HealthVault::WCData::Types::String16.new @children['thumbprint'] = {:name => 'thumbprint', :class => String, :value => nil, :min => 1, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['thumbprint'][:value] = String.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#data ⇒ Object
returns: a HealthVault::WCData::Types::String512
24 25 26 |
# File 'lib/wc_data/generated/types/sig.rb', line 24 def data return @children['data'][:value] end |
#data=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::Types::String512
19 20 21 |
# File 'lib/wc_data/generated/types/sig.rb', line 19 def data=(value) @children['data'][:value] = value end |
#digest_method ⇒ Object
returns: a HealthVault::WCData::Types::String16
39 40 41 |
# File 'lib/wc_data/generated/types/sig.rb', line 39 def digest_method return @children['digestMethod'][:value] end |
#digest_method=(value) ⇒ Object
remarks: An example hash algorithm name is SHA1. value is a HealthVault::WCData::Types::String16
34 35 36 |
# File 'lib/wc_data/generated/types/sig.rb', line 34 def digest_method=(value) @children['digestMethod'][:value] = value end |
#sig_method ⇒ Object
returns: a HealthVault::WCData::Types::String16
54 55 56 |
# File 'lib/wc_data/generated/types/sig.rb', line 54 def sig_method return @children['sigMethod'][:value] end |
#sig_method=(value) ⇒ Object
remarks: For example, RSA-SHA1, which implies using SHA1 to do the hash and RSA for signing. value is a HealthVault::WCData::Types::String16
49 50 51 |
# File 'lib/wc_data/generated/types/sig.rb', line 49 def sig_method=(value) @children['sigMethod'][:value] = value end |
#thumbprint ⇒ Object
returns: a String
69 70 71 |
# File 'lib/wc_data/generated/types/sig.rb', line 69 def thumbprint return @children['thumbprint'][:value] end |
#thumbprint=(value) ⇒ Object
remarks: An application may have multiple public keys associated with its application id. A thumbprint is used to identify which certificate to use when verifying a signature. value is a String
64 65 66 |
# File 'lib/wc_data/generated/types/sig.rb', line 64 def thumbprint=(value) @children['thumbprint'][:value] = value end |