Class StaticUserAuthenticator
Fixed users with passwords, e.g. from settings, for TURN servers without a service that hands out time-limited credentials.
Implements
Inherited Members
Namespace: Uniform.Turn
Assembly: Uniform.Turn.dll
Syntax
public sealed class StaticUserAuthenticator : ITurnAuthenticator
Constructors
| Edit this page View SourceStaticUserAuthenticator(IReadOnlyDictionary<string, string>)
Fixed users with passwords, e.g. from settings, for TURN servers without a service that hands out time-limited credentials.
Declaration
public StaticUserAuthenticator(IReadOnlyDictionary<string, string> passwords)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyDictionary<string, string> | passwords | Passwords by user name. |
Methods
| Edit this page View SourceGetKeys(string, string)
Return the key of a known user, or none.
Declaration
public IEnumerable<byte[]> GetKeys(string username, string realm)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | |
| string | realm |
Returns
| Type | Description |
|---|---|
| IEnumerable<byte[]> |