Inherited by NobleConnect.Stun.ShortTermCredentials.
|
byte[] | hashKey |
| This is used as the key to an HMACSHA1 hash of the message contents that is sent as the Value of a MessageIntegrity attribute. More...
|
|
◆ AddCredentialsToAttributes()
virtual void NobleConnect.Stun.Credentials.AddCredentialsToAttributes |
( |
List< Attribute > |
attributes | ) |
|
|
virtual |
◆ CalculateHashKey()
abstract void NobleConnect.Stun.Credentials.CalculateHashKey |
( |
| ) |
|
|
pure virtual |
◆ ComputeHash() [1/2]
byte [] NobleConnect.Stun.Credentials.ComputeHash |
( |
BufferView |
bytesSoFar | ) |
|
Use HMACSHA1 along with the hash key and buffer data to generate the message integrity hash
- Parameters
-
- Returns
◆ ComputeHash() [2/2]
byte [] NobleConnect.Stun.Credentials.ComputeHash |
( |
byte[] |
messageBytes, |
|
|
int |
offset = 0 , |
|
|
int |
length = -1 |
|
) |
| |
Use HMACSHA1 along with the hash key and buffer data to generate the message integrity hash
- Parameters
-
- Returns
◆ GenerateMessageIntegrityAttribute()
◆ IsValid()
abstract bool NobleConnect.Stun.Credentials.IsValid |
( |
| ) |
|
|
pure virtual |
◆ ValidateMessage()
virtual bool NobleConnect.Stun.Credentials.ValidateMessage |
( |
Message |
m, |
|
|
byte[] |
rawBytes |
|
) |
| |
|
virtual |
◆ ValidateMessageCredentials()
abstract bool NobleConnect.Stun.Credentials.ValidateMessageCredentials |
( |
Message |
m | ) |
|
|
pure virtual |
◆ ValidateMessageIntegrity()
abstract bool NobleConnect.Stun.Credentials.ValidateMessageIntegrity |
( |
Message |
m, |
|
|
byte[] |
rawBytes |
|
) |
| |
|
pure virtual |
◆ hashKey
byte [] NobleConnect.Stun.Credentials.hashKey |
|
protected |
This is used as the key to an HMACSHA1 hash of the message contents that is sent as the Value of a MessageIntegrity attribute.
◆ username
The username is set via configuration on the Stun server and clients
The username may depend on the realm returned by the server