Share via


SimpleWebSecurityToken Constructors

Definition

Overloads

SimpleWebSecurityToken(String)

Initializes a new instance of the SimpleWebSecurityToken class with the specified Simple Web Token.

SimpleWebSecurityToken(String, DateTime)

Initializes a new instance of the SimpleWebSecurityToken class with the specified Simple Web Token and expiry date.

SimpleWebSecurityToken(String, String)

Initializes a new instance of the SimpleWebSecurityToken class with the specified token ID and Simple Web Token.

SimpleWebSecurityToken(String, DateTime, String)

Initializes a new instance of the SimpleWebSecurityToken class.

SimpleWebSecurityToken(String)

Initializes a new instance of the SimpleWebSecurityToken class with the specified Simple Web Token.

public SimpleWebSecurityToken (string tokenString);
new Microsoft.ServiceBus.SimpleWebSecurityToken : string -> Microsoft.ServiceBus.SimpleWebSecurityToken
Public Sub New (tokenString As String)

Parameters

tokenString
String

A string that represents the Simple Web Token.

Applies to

SimpleWebSecurityToken(String, DateTime)

Initializes a new instance of the SimpleWebSecurityToken class with the specified Simple Web Token and expiry date.

public SimpleWebSecurityToken (string tokenString, DateTime expiry);
new Microsoft.ServiceBus.SimpleWebSecurityToken : string * DateTime -> Microsoft.ServiceBus.SimpleWebSecurityToken
Public Sub New (tokenString As String, expiry As DateTime)

Parameters

tokenString
String

A string that represents the Simple Web Token.

expiry
DateTime

The expiry date of the simple web token.

Applies to

SimpleWebSecurityToken(String, String)

Initializes a new instance of the SimpleWebSecurityToken class with the specified token ID and Simple Web Token.

public SimpleWebSecurityToken (string id, string tokenString);
new Microsoft.ServiceBus.SimpleWebSecurityToken : string * string -> Microsoft.ServiceBus.SimpleWebSecurityToken
Public Sub New (id As String, tokenString As String)

Parameters

id
String

A unique identifier for the Simple Web Token.

tokenString
String

A string that represents the Simple Web Token.

Exceptions

The id parameter or tokenString parameter is null.

Applies to

SimpleWebSecurityToken(String, DateTime, String)

Initializes a new instance of the SimpleWebSecurityToken class.

public SimpleWebSecurityToken (string tokenString, DateTime expiry, string audience);
new Microsoft.ServiceBus.SimpleWebSecurityToken : string * DateTime * string -> Microsoft.ServiceBus.SimpleWebSecurityToken
Public Sub New (tokenString As String, expiry As DateTime, audience As String)

Parameters

tokenString
String

A string that represents the Simple Web Token.

expiry
DateTime

The expiry date of the simple web token.

audience
String

The audience for the simple web token.

Applies to