Table of Contents

Class SecurityToken

Namespace
Microsoft.Azure.ServiceBus.Primitives
Assembly
Microsoft.Azure.ServiceBus.dll

Provides information about a security token such as audience, expiry time, and the string token value.

public class SecurityToken
Inheritance
SecurityToken
Derived
Inherited Members

Constructors

SecurityToken(string, DateTime, string, string)

Creates a new instance of the SecurityToken class.

public SecurityToken(string tokenString, DateTime expiresAtUtc, string audience, string tokenType)

Parameters

tokenString string

The token

expiresAtUtc DateTime

The expiration time

audience string

The audience

tokenType string

The type of the token

Properties

Audience

Gets the audience of this token.

public string Audience { get; }

Property Value

string

ExpiresAtUtc

Gets the expiration time of this token.

public DateTime ExpiresAtUtc { get; }

Property Value

DateTime

TokenType

Gets the token type.

public virtual string TokenType { get; }

Property Value

string

TokenValue

Gets the actual token.

public virtual string TokenValue { get; }

Property Value

string