System.IdentityModel.Tokens.Jwt.JwtHeader
Initializes a new instance of JwtHeader which contains JSON objects representing the cryptographic operations applied to the JWT and optionally any additional properties of the JWT.
The member names within the JWT Header are referred to as Header Parameter Names.
These names MUST be unique and the values must be String(s). The corresponding values are referred to as Header Parameter Values.
Gets the signature algorithm that was used to create the signature.
Gets the content mime type (Cty) of the token.
Gets the encryption algorithm (Enc) of the token.
Gets the EncryptingCredentials passed in the constructor.
Gets the iv of symmetric key wrap.
Gets the key identifier for the security key used to sign the token
Gets the SigningCredentials passed in the constructor.
Gets the mime type (Typ) of the token.
Gets the certificate used to sign the token
Gets the thumbprint of the certificate used to sign the token
Gets the 'value' of the 'zip' claim { zip, 'value' }.
public JwtHeader()
Initializes a new instance of JwtHeader.
With the Header Parameters:
{ { typ, JWT }, { alg, SigningCredentials.Algorithm } }
Initializes a new instance of JwtHeader.
With the Header Parameters:
{ { typ, JWT }, { alg, EncryptingCredentials.Alg }, { enc, EncryptingCredentials.Enc } }
public JwtHeader(SigningCredentials signingCredentials, IDictionary<string, string> outboundAlgorithmMap)
Initializes a new instance of JwtHeader.
With the Header Parameters:
{ { typ, JWT }, { alg, SigningCredentials.Algorithm } }
public JwtHeader(SigningCredentials signingCredentials, IDictionary<string, string> outboundAlgorithmMap, string tokenType)
Initializes a new instance of JwtHeader.
With the Header Parameters:
{ { typ, JWT }, { alg, SigningCredentials.Algorithm } }
public JwtHeader(SigningCredentials signingCredentials, IDictionary<string, string> outboundAlgorithmMap, string tokenType, IDictionary<string, object> additionalInnerHeaderClaims)
Initializes a new instance of JwtHeader.
With the Header Parameters:
{ { typ, JWT }, { alg, SigningCredentials.Algorithm } }
public JwtHeader(EncryptingCredentials encryptingCredentials, IDictionary<string, string> outboundAlgorithmMap)
Initializes a new instance of JwtHeader.
With the Header Parameters:
{ { typ, JWT }, { alg, EncryptingCredentials.Algorithm } }
public JwtHeader(EncryptingCredentials encryptingCredentials, IDictionary<string, string> outboundAlgorithmMap, string tokenType)
Initializes a new instance of JwtHeader.
With the Header Parameters:
{ { typ, JWT }, { alg, EncryptingCredentials.Algorithm } }
public JwtHeader(EncryptingCredentials encryptingCredentials, IDictionary<string, string> outboundAlgorithmMap, string tokenType, IDictionary<string, object> additionalHeaderClaims)
Initializes a new instance of JwtHeader.
With the Header Parameters:
{ { typ, JWT }, { alg, EncryptingCredentials.Algorithm } }
Deserializes Base64UrlEncoded JSON into a JwtHeader instance.
Encodes this instance as Base64UrlEncoded JSON.
Serializes this instance to JSON.