Table of Contents

Class SubtokenOptionsBuilder

Namespace
GuildWars2.Authorization
Assembly
GuildWars2.dll

Builds options for creating a subtoken.

public sealed class SubtokenOptionsBuilder
Inheritance
SubtokenOptionsBuilder
Inherited Members

Properties

AbsoluteExpirationDate

Gets the requested absolute expiration date.

AllowedUrls

Gets the requested allowlisted URLs.

Permissions

Gets the requested permissions.

Methods

AddAllowedUrl(string)

Adds an allowed URL.

AddAllowedUrl(Uri)

Adds an allowed URL.

AddPermission(Permission)

Adds a permission to the request.

ClearAllowedUrls()

Clears any requested allowed URLs.

ClearPermissions()

Clears any requested permissions.

WithAbsoluteExpiration(in DateTimeOffset?)

Sets the absolute expiration date.

WithAllowedUrlStrings(IEnumerable<string>)

Replaces the allowed URLs.

WithAllowedUrls(IEnumerable<Uri>)

Replaces the allowed URLs.

WithPermissions(IEnumerable<Permission>)

Replaces the requested permissions.

WithPermissions(IEnumerable<Extensible<Permission>>)

Replaces the requested permissions.