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
The value 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
Thrown if 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
The value to be signed.
- signingCredentials
- SigningCredentials
The SigningCredentials that contain crypto specs used to sign the token.
- cacheProvider
- Boolean
Indicates whether the SignatureProvider should be cached.
Returns
The base 64 url encoded signature over the bytes obtained from UTF8Encoding.GetBytes( 'input' ).
Exceptions
Thrown if input
or signingCredentials
is null.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for