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.