Credentials used for authenticating messages
More...
Inherits NobleConnect.Stun.Credentials.
Inherited by NobleConnect.Ice.IceCredentials, and NobleConnect.Stun.LongTermCredentials.
|
| 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...
|
| |
Credentials used for authenticating messages
◆ ShortTermCredentials()
| NobleConnect.Stun.ShortTermCredentials.ShortTermCredentials |
( |
string |
username, |
|
|
string |
password |
|
) |
| |
◆ AddCredentialsToAttributes()
| override void NobleConnect.Stun.ShortTermCredentials.AddCredentialsToAttributes |
( |
List< Attribute > |
attributes | ) |
|
|
virtual |
◆ CalculateHashKey()
| override void NobleConnect.Stun.ShortTermCredentials.CalculateHashKey |
( |
| ) |
|
|
virtual |
The hashKey is a UTF-8 encoding of the password
This is used as the key to an HMACSHA1 hash of the message contents that is sent as the Value of a MessageIntegrity attribute.
Implements NobleConnect.Stun.Credentials.
◆ IsValid()
| override bool NobleConnect.Stun.ShortTermCredentials.IsValid |
( |
| ) |
|
|
virtual |
◆ ValidateMessageCredentials()
| override bool NobleConnect.Stun.ShortTermCredentials.ValidateMessageCredentials |
( |
Message |
m | ) |
|
|
virtual |
◆ ValidateMessageIntegrity()
| override bool NobleConnect.Stun.ShortTermCredentials.ValidateMessageIntegrity |
( |
Message |
m, |
|
|
byte[] |
rawBytes |
|
) |
| |
|
virtual |
◆ password
| string NobleConnect.Stun.ShortTermCredentials.password |
The password is set via configuratio on the Stun server and clients