Επεξεργασία

Κοινή χρήση μέσω


EncryptedSecurityToken Class

Definition

A wrapping-token that handles encryption for a token that does not natively support it.

public ref class EncryptedSecurityToken : System::IdentityModel::Tokens::SecurityToken
public class EncryptedSecurityToken : System.IdentityModel.Tokens.SecurityToken
type EncryptedSecurityToken = class
    inherit SecurityToken
Public Class EncryptedSecurityToken
Inherits SecurityToken
Inheritance
EncryptedSecurityToken

Remarks

For example, a SamlSecurityToken cannot encrypt itself, so to issue an encrypted SAML11 assertion, wrap a SamlSecurityToken with an EncryptedSecurityToken and provide appropriate EncryptingCredentials.

Constructors

EncryptedSecurityToken(SecurityToken, EncryptingCredentials)

Initializes a new instance of the EncryptedSecurityToken class for the specified token by using the specified encrypting credentials.

Properties

EncryptingCredentials

Gets the credentials to use for encryption.

Id

Gets the unique identifier of the security token.

SecurityKeys

Gets the cryptographic keys associated with the security token.

Token

Gets the encrypted token.

ValidFrom

Gets the first instant in time at which the security token is valid.

ValidTo

Gets the last instant in time at which the security token is valid.

Methods

CanCreateKeyIdentifierClause<T>()

Gets a value that indicates whether the token can create a key identifier clause of the specified type.

CreateKeyIdentifierClause<T>()

Creates a key identifier clause of the specified type for the token.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MatchesKeyIdentifierClause(SecurityKeyIdentifierClause)

Returns a value that indicates whether the key identifier for this instance can be resolved to the specified key identifier.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

Gets the key for the specified key identifier clause.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also