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[:a1] || attributes['a1'] || nil
  @algorithm = attributes[:algorithm] || attributes['algorithm'] || nil
  @charset = attributes[:charset] || attributes['charset'] || nil
  @cnonce = attributes[:cnonce] || attributes['cnonce'] || nil
  @method = attributes[:method] || attributes['method'] || nil
  @nc = attributes[:nc] || attributes['nc'] || nil
  @nonce = attributes[:nonce] || attributes['nonce'] || nil
  @opaque = attributes[:opaque] || attributes['opaque'] || nil
  @realm = attributes[:realm] || attributes['realm'] || nil
  @response = attributes[:response] || attributes['response'] || nil
  @stale = attributes[:stale] || attributes['stale'] || nil
  @uri = attributes[:uri] || attributes['uri'] || nil
  @userhash = attributes[:userhash] || attributes['userhash'] || nil
  @username = attributes[:username] || attributes['username'] || nil
  @domain = attributes[:domain] || attributes['domain'] || nil
  @qop = attributes[:qop] || attributes['qop'] || nil
end

Instance Attribute Details

#a1String

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

#algorithmString

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

#charsetString

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

#cnonceString

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

#domainArray<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

#methodString

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

#ncString

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

#nonceString

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

#opaqueString

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

#qopArray<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

#realmString

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

#responseString

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

#staleBoolean

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

#uriString

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

#userhashBoolean

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

#usernameString

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_mappingsObject

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