Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​IdentityModel.​Tokens.​EncryptingCredentials
Assembly: Microsoft.IdentityModel.Tokens
Inheritance: object → EncryptingCredentials
A class for properties that are used for token encryption.
Properties
public
string
Alg
Gets the key wrap algorithm used for session key encryption.
public
string
Enc
Gets the data encryption algorithm.
public
SecurityKey
KeyExchangePublicKey
Gets or sets the public key used in Key Agreement Algorithms.
public
CryptoProviderFactory
CryptoProviderFactory
Users can override the default <see cref="P:Microsoft.IdentityModel.Tokens.EncryptingCredentials.CryptoProviderFactory" /> with this property. This factory will be used for creating encryption providers.
public
bool
SetDefaultCtyClaim
Gets or sets a bool that controls if the encrypted token creation will set default 'cty' if not specified.
Remarks Applies to only JWT tokens.
public
SecurityKey
Key
Gets the <see cref="T:Microsoft.IdentityModel.Tokens.SecurityKey" /> used for encryption.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object