JsonWebToken.Create Method (String, String, DateTime, DateTime, SigningCredentials)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Namespace: Microsoft.VisualStudio.Services.Common.JWT
Assembly: Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.dll)
Syntax
'Declaration
Public Shared Function Create ( _
issuer As String, _
audience As String, _
validFrom As DateTime, _
validTo As DateTime, _
credentials As SigningCredentials _
) As JsonWebToken
public static JsonWebToken Create(
string issuer,
string audience,
DateTime validFrom,
DateTime validTo,
SigningCredentials credentials
)
public:
static JsonWebToken^ Create(
String^ issuer,
String^ audience,
DateTime validFrom,
DateTime validTo,
SigningCredentials^ credentials
)
static member Create :
issuer:string *
audience:string *
validFrom:DateTime *
validTo:DateTime *
credentials:SigningCredentials -> JsonWebToken
public static function Create(
issuer : String,
audience : String,
validFrom : DateTime,
validTo : DateTime,
credentials : SigningCredentials
) : JsonWebToken
Parameters
- issuer
Type: System.String
- audience
Type: System.String
- validFrom
Type: System.DateTime
- validTo
Type: System.DateTime
- credentials
Type: System.IdentityModel.Tokens.SigningCredentials
Return Value
Type: Microsoft.VisualStudio.Services.Common.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.