EncryptedSecurityToken Class
TOC
Collapse the table of content
Expand the table of content

EncryptedSecurityToken Class

.NET Framework (current version)
 

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

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

System.Object
  System.IdentityModel.Tokens.SecurityToken
    System.IdentityModel.Tokens.EncryptedSecurityToken

public class EncryptedSecurityToken : SecurityToken

NameDescription
System_CAPS_pubmethodEncryptedSecurityToken(SecurityToken, EncryptingCredentials)

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

NameDescription
System_CAPS_pubpropertyEncryptingCredentials

Gets the credentials to use for encryption.

System_CAPS_pubpropertyId

Gets the unique identifier of the security token.(Overrides SecurityToken.Id.)

System_CAPS_pubpropertySecurityKeys

Gets the cryptographic keys associated with the security token.(Overrides SecurityToken.SecurityKeys.)

System_CAPS_pubpropertyToken

Gets the encrypted token.

System_CAPS_pubpropertyValidFrom

Gets the first instant in time at which the security token is valid.(Overrides SecurityToken.ValidFrom.)

System_CAPS_pubpropertyValidTo

Gets the last instant in time at which the security token is valid.(Overrides SecurityToken.ValidTo.)

NameDescription
System_CAPS_pubmethodCanCreateKeyIdentifierClause<T>()

Gets a value that indicates whether the token can create a key identifier clause of the specified type.(Overrides SecurityToken.CanCreateKeyIdentifierClause<T>().)

System_CAPS_pubmethodCreateKeyIdentifierClause<T>()

Creates a key identifier clause of the specified type for the token.(Overrides SecurityToken.CreateKeyIdentifierClause<T>().)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodMatchesKeyIdentifierClause(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).)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

Gets the key for the specified key identifier clause.(Overrides SecurityToken.ResolveKeyIdentifierClause(SecurityKeyIdentifierClause).)

System_CAPS_pubmethodToString()

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.

.NET Framework
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.

Return to top
Show:
© 2016 Microsoft