EncryptedSecurityToken Class
A wrapping-token that handles encryption for a token that does not natively support it.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
System.IdentityModel.Tokens::SecurityToken
System.IdentityModel.Tokens::EncryptedSecurityToken
| Name | Description | |
|---|---|---|
![]() | EncryptedSecurityToken(SecurityToken^, EncryptingCredentials^) | Initializes a new instance of the EncryptedSecurityToken class for the specified token by using the specified encrypting credentials. |
| Name | Description | |
|---|---|---|
![]() | EncryptingCredentials | Gets the credentials to use for encryption. |
![]() | Id | Gets the unique identifier of the security token.(Overrides SecurityToken::Id.) |
![]() | SecurityKeys | Gets the cryptographic keys associated with the security token.(Overrides SecurityToken::SecurityKeys.) |
![]() | Token | Gets the encrypted token. |
![]() | ValidFrom | Gets the first instant in time at which the security token is valid.(Overrides SecurityToken::ValidFrom.) |
![]() | ValidTo | Gets the last instant in time at which the security token is valid.(Overrides SecurityToken::ValidTo.) |
| Name | Description | |
|---|---|---|
![]() | CanCreateKeyIdentifierClause<T>() | Gets a value that indicates whether the token can create a key identifier clause of the specified type.(Overrides SecurityToken::CanCreateKeyIdentifierClause<T>().) |
![]() | CreateKeyIdentifierClause<T>() | Creates a key identifier clause of the specified type for the token.(Overrides SecurityToken::CreateKeyIdentifierClause<T>().) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MatchesKeyIdentifierClause(SecurityKeyIdentifierClause^) | Returns a value that indicates whether the key identifier for this instance can be resolved to the specified key identifier.(Overrides SecurityToken::MatchesKeyIdentifierClause(SecurityKeyIdentifierClause^).) |
![]() | MemberwiseClone() | |
![]() | ResolveKeyIdentifierClause(SecurityKeyIdentifierClause^) | Gets the key for the specified key identifier clause.(Overrides SecurityToken::ResolveKeyIdentifierClause(SecurityKeyIdentifierClause^).) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
For example, a SamlSecurityToken cannot encrypt itself, so to issue an encrypted SAML11 assertion, wrap a SamlSecurityToken with an EncryptedSecurityToken and provide appropriate EncryptingCredentials.
Available since 4.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


