Class SharedSecretAuthenticator
Time-limited credentials from shared secrets, as Matrix homeservers hand them out: see TurnCredentials. Several secrets let one be replaced without cutting off credentials made with the other.
Implements
Inherited Members
Namespace: Uniform.Turn
Assembly: Uniform.Turn.dll
Syntax
public sealed class SharedSecretAuthenticator : ITurnAuthenticator
Constructors
| Edit this page View SourceSharedSecretAuthenticator(IReadOnlyList<string>, TimeProvider)
Time-limited credentials from shared secrets, as Matrix homeservers hand them out: see TurnCredentials. Several secrets let one be replaced without cutting off credentials made with the other.
Declaration
public SharedSecretAuthenticator(IReadOnlyList<string> secrets, TimeProvider time)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<string> | secrets | The shared secrets; any of them may have made the password. |
| TimeProvider | time | Clock for the expiry. |
Methods
| Edit this page View SourceGetKeys(string, string)
Return the key each secret gives username, or none when it has expired or has no expiry.
Declaration
public IEnumerable<byte[]> GetKeys(string username, string realm)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | |
| string | realm |
Returns
| Type | Description |
|---|---|
| IEnumerable<byte[]> |