|
| LongTermCredentials (string username, string password) |
|
override void | CalculateHashKey () |
| The hashKey is an MD5 encoding of a string made up of the username, realm, and password, separated by colons More...
|
|
override bool | IsValid () |
|
override bool | ValidateMessageCredentials (Message m) |
|
override void | AddCredentialsToAttributes (List< Attribute > attributes) |
|
void | SetRealmAndNonce (AttributeString realm, AttributeString nonce) |
|
| ShortTermCredentials (string username, string password) |
|
override void | CalculateHashKey () |
| The hashKey is a UTF-8 encoding of the password More...
|
|
override bool | IsValid () |
|
override bool | ValidateMessageCredentials (Message m) |
|
override bool | ValidateMessageIntegrity (Message m, byte[] rawBytes) |
|
override void | AddCredentialsToAttributes (List< Attribute > attributes) |
|
virtual bool | ValidateMessage (Message m, byte[] rawBytes) |
|
virtual AttributeRaw | GenerateMessageIntegrityAttribute (MessageHeader header, List< Attribute > attributes) |
|
byte[] | ComputeHash (BufferView bytesSoFar) |
| Use HMACSHA1 along with the hash key and buffer data to generate the message integrity hash More...
|
|
byte[] | 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 More...
|
|
Credentials used for authenticating messages
See RFC 5389 Section 10.2 for details about the long-term authentication process
override void NobleConnect.Stun.LongTermCredentials.CalculateHashKey |
( |
| ) |
|
|
virtual |
The hashKey is an MD5 encoding of a string made up of the username, realm, and password, separated by colons
This is used as the key to an HMACSHA1 hash of the message contents that is sent as the Value of a MessageIntegrity attribute. See RFC 5389 Section 15.4 for details.
Implements NobleConnect.Stun.Credentials.