Class: HealthVault::WCData::Methods::CreateAuthenticatedSessionToken::Credential

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/methods/create_authenticated_session_token/credential.rb

Instance Attribute Summary

Attributes inherited from ComplexType

#tag_name

Instance Method Summary collapse

Methods inherited from ComplexType

#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?

Constructor Details

#initializeCredential

Returns a new instance of Credential.



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/wc_data/generated/methods/create_authenticated_session_token/credential.rb', line 63

def initialize
  super
  self.tag_name = 'credential'

  
  @children['cardspaceauthsession'] = {:name => 'cardspaceauthsession', :class => HealthVault::WCData::Types::CardSpaceCred, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 363603360 }
    
  

  
  @children['appserver'] = {:name => 'appserver', :class => HealthVault::WCData::Types::AppServerCred, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 363603360 }
    
  

  
  @children['userpassauthsession'] = {:name => 'userpassauthsession', :class => HealthVault::WCData::Auth::UserPassAuthSessionCred, :value => nil, :min => 1, :max => 1, :order => 3, :place => :element, :choice => 363603360 }
    
  

end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType

Instance Method Details

#appserverObject

returns: a HealthVault::WCData::Types::AppServerCred



42
43
44
# File 'lib/wc_data/generated/methods/create_authenticated_session_token/credential.rb', line 42

def appserver
  return @children['appserver'][:value]
end

#appserver=(value) ⇒ Object

remarks: The credential is a signed request showing proof-of-posession of the application-specific private key. This credential may be used to establish two modes of authentication. First, it may be used to create an trusted anonymous session in the context of the application. Secondly, it may be used to create a trusted session in the context of a specified user. value is a HealthVault::WCData::Types::AppServerCred



37
38
39
# File 'lib/wc_data/generated/methods/create_authenticated_session_token/credential.rb', line 37

def appserver=(value)
  @children['appserver'][:value] = value
end

#cardspaceauthsessionObject

returns: a HealthVault::WCData::Types::CardSpaceCred



27
28
29
# File 'lib/wc_data/generated/methods/create_authenticated_session_token/credential.rb', line 27

def cardspaceauthsession
  return @children['cardspaceauthsession'][:value]
end

#cardspaceauthsession=(value) ⇒ Object

remarks: The SAMLE token is generated via CardSpace using GetToken. value is a HealthVault::WCData::Types::CardSpaceCred



22
23
24
# File 'lib/wc_data/generated/methods/create_authenticated_session_token/credential.rb', line 22

def cardspaceauthsession=(value)
  @children['cardspaceauthsession'][:value] = value
end

#userpassauthsessionObject

returns: a HealthVault::WCData::Auth::UserPassAuthSessionCred



57
58
59
# File 'lib/wc_data/generated/methods/create_authenticated_session_token/credential.rb', line 57

def userpassauthsession
  return @children['userpassauthsession'][:value]
end

#userpassauthsession=(value) ⇒ Object

remarks: This is for test purposes only. Both the username and password are in plaintext. value is a HealthVault::WCData::Auth::UserPassAuthSessionCred



52
53
54
# File 'lib/wc_data/generated/methods/create_authenticated_session_token/credential.rb', line 52

def userpassauthsession=(value)
  @children['userpassauthsession'][:value] = value
end