Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor
Contains some information which used to create a security token.
Gets or sets the value of the {"": audience} claim. Will be combined with Audiences and any "Aud" claims in
Claims or Subject when creating a token.
Gets the list audiences to include in the token's 'Aud' claim. Will be combined with Audiences and any
"Aud" claims in Claims or Subject when creating a token.
Gets or sets the Dictionary<T, U> which represents the claims that will be used when creating a security token.
If both Claims and Subject are set, the claim values in Subject will be combined with the values
in Claims. The values found in Claims take precedence over those found in Subject, so any duplicate
values will be overridden.
Defines the compression algorithm that will be used to compress the JWT token payload.
Gets or sets the EncryptingCredentials used to create a encrypted security token.
Gets or sets the value of the 'expiration' claim. This value should be in UTC.
Indicates if kid and x5t should be included in the header of a JSON web token (JWT)
Only applies to JWTs
Gets or sets the time the security token was issued. This value should be in UTC.
Gets or sets the issuer of this SecurityTokenDescriptor.
Gets or sets the notbefore time for the security token. This value should be in UTC.
Gets or sets the SigningCredentials used to create a security token.
Gets or sets the ClaimsIdentity.
If both Claims and Subject are set, the claim values in Subject will be combined with the values
in Claims. The values found in Claims take precedence over those found in Subject, so any duplicate
values will be overridden.
Gets or sets the token type.
If provided, this will be added as the value for the 'typ' header parameter. In the case of a JWE, this will be added to both the inner (JWS) and the outer token (JWE) header. By default, the value used is 'JWT'.
If AdditionalHeaderClaims also contains 'typ' header claim value, it will override the TokenType provided here.
This value is used only for JWT tokens and not for SAML/SAML2 tokens
public SecurityTokenDescriptor()