Class: GetStream::Generated::Models::SIPChallengeRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/sip_challenge_request.rb

Overview

SIP digest challenge authentication data

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ SIPChallengeRequest

Initialize with attributes



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 62

def initialize(attributes = {})
  super(attributes)
  @a1 = attributes.fetch(:a1) { attributes.fetch('a1', nil) }
  @algorithm = attributes.fetch(:algorithm) { attributes.fetch('algorithm', nil) }
  @charset = attributes.fetch(:charset) { attributes.fetch('charset', nil) }
  @cnonce = attributes.fetch(:cnonce) { attributes.fetch('cnonce', nil) }
  @method = attributes.fetch(:method) { attributes.fetch('method', nil) }
  @nc = attributes.fetch(:nc) { attributes.fetch('nc', nil) }
  @nonce = attributes.fetch(:nonce) { attributes.fetch('nonce', nil) }
  @opaque = attributes.fetch(:opaque) { attributes.fetch('opaque', nil) }
  @realm = attributes.fetch(:realm) { attributes.fetch('realm', nil) }
  @response = attributes.fetch(:response) { attributes.fetch('response', nil) }
  @stale = attributes.fetch(:stale) { attributes.fetch('stale', nil) }
  @uri = attributes.fetch(:uri) { attributes.fetch('uri', nil) }
  @userhash = attributes.fetch(:userhash) { attributes.fetch('userhash', nil) }
  @username = attributes.fetch(:username) { attributes.fetch('username', nil) }
  @domain = attributes.fetch(:domain) { attributes.fetch('domain', nil) }
  @qop = attributes.fetch(:qop) { attributes.fetch('qop', nil) }
end

Instance Attribute Details

#a1 ⇒ String

Returns Deprecated: A1 hash for backward compatibility.

Returns:

  • (String) —

    Deprecated: A1 hash for backward compatibility



14
15
16
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 14

def a1
  @a1
end

#algorithm ⇒ String

Returns Hash algorithm (e.g., MD5, SHA-256).

Returns:

  • (String) —

    Hash algorithm (e.g., MD5, SHA-256)



17
18
19
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 17

def algorithm
  @algorithm
end

#charset ⇒ String

Returns Character set.

Returns:

  • (String) —

    Character set



20
21
22
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 20

def charset
  @charset
end

#cnonce ⇒ String

Returns Client nonce for qop=auth.

Returns:

  • (String) —

    Client nonce for qop=auth



23
24
25
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 23

def cnonce
  @cnonce
end

#domain ⇒ Array<String>

Returns Domain list.

Returns:

  • (Array<String>) —

    Domain list



56
57
58
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 56

def domain
  @domain
end

#method ⇒ String

Returns SIP method (e.g., INVITE).

Returns:

  • (String) —

    SIP method (e.g., INVITE)



26
27
28
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 26

def method
  @method
end

#nc ⇒ String

Returns Nonce count for qop=auth.

Returns:

  • (String) —

    Nonce count for qop=auth



29
30
31
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 29

def nc
  @nc
end

#nonce ⇒ String

Returns Server nonce.

Returns:

  • (String) —

    Server nonce



32
33
34
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 32

def nonce
  @nonce
end

#opaque ⇒ String

Returns Opaque value.

Returns:

  • (String) —

    Opaque value



35
36
37
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 35

def opaque
  @opaque
end

#qop ⇒ Array<String>

Returns Quality of protection options.

Returns:

  • (Array<String>) —

    Quality of protection options



59
60
61
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 59

def qop
  @qop
end

#realm ⇒ String

Returns Authentication realm.

Returns:

  • (String) —

    Authentication realm



38
39
40
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 38

def realm
  @realm
end

#response ⇒ String

Returns Digest response hash from client.

Returns:

  • (String) —

    Digest response hash from client



41
42
43
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 41

def response
  @response
end

#stale ⇒ Boolean

Returns Whether the nonce is stale.

Returns:

  • (Boolean) —

    Whether the nonce is stale



44
45
46
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 44

def stale
  @stale
end

#uri ⇒ String

Returns Request URI.

Returns:

  • (String) —

    Request URI



47
48
49
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 47

def uri
  @uri
end

#userhash ⇒ Boolean

Returns Whether to hash the username.

Returns:

  • (Boolean) —

    Whether to hash the username



50
51
52
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 50

def userhash
  @userhash
end

#username ⇒ String

Returns Username for authentication.

Returns:

  • (String) —

    Username for authentication



53
54
55
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 53

def username
  @username
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/getstream_ruby/generated/models/sip_challenge_request.rb', line 83

def self.json_field_mappings
  {
    a1: 'a1',
    algorithm: 'algorithm',
    charset: 'charset',
    cnonce: 'cnonce',
    method: 'method',
    nc: 'nc',
    nonce: 'nonce',
    opaque: 'opaque',
    realm: 'realm',
    response: 'response',
    stale: 'stale',
    uri: 'uri',
    userhash: 'userhash',
    username: 'username',
    domain: 'domain',
    qop: 'qop'
  }
end