JwtTokenUtilities.CreateEncodedSignature Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateEncodedSignature(String, SigningCredentials) |
Produces a signature over the |
CreateEncodedSignature(String, SigningCredentials, Boolean) |
Produces a signature over the |
CreateEncodedSignature(String, SigningCredentials)
Produces a signature over the input
.
public static string CreateEncodedSignature (string input, Microsoft.IdentityModel.Tokens.SigningCredentials signingCredentials);
static member CreateEncodedSignature : string * Microsoft.IdentityModel.Tokens.SigningCredentials -> string
Public Shared Function CreateEncodedSignature (input As String, signingCredentials As SigningCredentials) As String
Parameters
- input
- String
String to be signed
- signingCredentials
- SigningCredentials
The SigningCredentials that contain crypto specs used to sign the token.
Returns
The base 64 url encoded signature over the bytes obtained from UTF8Encoding.GetBytes( 'input' ).
Exceptions
'input' or 'signingCredentials' is null.
Applies to
CreateEncodedSignature(String, SigningCredentials, Boolean)
Produces a signature over the input
.
public static string CreateEncodedSignature (string input, Microsoft.IdentityModel.Tokens.SigningCredentials signingCredentials, bool cacheProvider);
static member CreateEncodedSignature : string * Microsoft.IdentityModel.Tokens.SigningCredentials * bool -> string
Public Shared Function CreateEncodedSignature (input As String, signingCredentials As SigningCredentials, cacheProvider As Boolean) As String
Parameters
- input
- String
String to be signed
- signingCredentials
- SigningCredentials
The SigningCredentials that contain crypto specs used to sign the token.
- cacheProvider
- Boolean
should the SignatureProvider be cached.
Returns
The base 64 url encoded signature over the bytes obtained from UTF8Encoding.GetBytes( 'input' ).
Exceptions
input
or signingCredentials
is null.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應