Table of Contents

Interface ITokenGenerator

Namespace
Vonage
Assembly
Vonage.dll

Represents a token generator.

public interface ITokenGenerator

Methods

GenerateToken(string, string, Dictionary<string, object>)

Generates a token.

Result<string> GenerateToken(string applicationId, string privateKey, Dictionary<string, object> claims = null)

Parameters

applicationId string

The application Id.

privateKey string

The application private key.

claims Dictionary<string, object>

The additional claims.

Returns

Result<string>

The token.

GenerateToken(Credentials, Dictionary<string, object>)

Generates a token.

Result<string> GenerateToken(Credentials credentials, Dictionary<string, object> claims = null)

Parameters

credentials Credentials

The application credentials.

claims Dictionary<string, object>

The additional claims.

Returns

Result<string>

The token.