JsonWebToken.Create Method (String, String, DateTime, DateTime, IEnumerable<Claim>, JsonWebToken)
Namespace: Microsoft.VisualStudio.Services.WebApi.Jwt
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Public Shared Function Create ( _
issuer As String, _
audience As String, _
validFrom As DateTime, _
validTo As DateTime, _
additionalClaims As IEnumerable(Of Claim), _
actor As JsonWebToken _
) As JsonWebToken
public static JsonWebToken Create(
string issuer,
string audience,
DateTime validFrom,
DateTime validTo,
IEnumerable<Claim> additionalClaims,
JsonWebToken actor
)
public:
static JsonWebToken^ Create(
String^ issuer,
String^ audience,
DateTime validFrom,
DateTime validTo,
IEnumerable<Claim^>^ additionalClaims,
JsonWebToken^ actor
)
static member Create :
issuer:string *
audience:string *
validFrom:DateTime *
validTo:DateTime *
additionalClaims:IEnumerable<Claim> *
actor:JsonWebToken -> JsonWebToken
public static function Create(
issuer : String,
audience : String,
validFrom : DateTime,
validTo : DateTime,
additionalClaims : IEnumerable<Claim>,
actor : JsonWebToken
) : JsonWebToken
Parameters
- issuer
Type: System.String
- audience
Type: System.String
- validFrom
Type: System.DateTime
- validTo
Type: System.DateTime
- additionalClaims
Type: System.Collections.Generic.IEnumerable<Claim>
Return Value
Type: Microsoft.VisualStudio.Services.WebApi.Jwt.JsonWebToken
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.