संपादित करें

इसके माध्यम से साझा किया गया


SecurityKeyElement Class

Definition

Provides delayed resolution of security keys by resolving the SecurityKeyIdentifierClause or SecurityKeyIdentifier only when cryptographic functions are needed. This allows a key identifier clause or key identifier that is never used by an application to be serialized and deserialized on and off the wire without issues.

public ref class SecurityKeyElement : System::IdentityModel::Tokens::SecurityKey
public class SecurityKeyElement : System.IdentityModel.Tokens.SecurityKey
type SecurityKeyElement = class
    inherit SecurityKey
Public Class SecurityKeyElement
Inherits SecurityKey
Inheritance
SecurityKeyElement

Constructors

SecurityKeyElement(SecurityKeyIdentifier, SecurityTokenResolver)

Initializes a new instance of the SecurityKeyElement class from the specified key identifier.

SecurityKeyElement(SecurityKeyIdentifierClause, SecurityTokenResolver)

Initializes a new instance of the SecurityKeyElement class from the specified key identifier clause.

Properties

KeySize

Gets the key size, in bits.

Methods

DecryptKey(String, Byte[])

Decrypts the specified key by using the specified algorithm.

EncryptKey(String, Byte[])

Encrypts the specified key by using the specified algorithm.

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)
IsAsymmetricAlgorithm(String)

Returns a value that indicates whether the specified algorithm is asymmetric.

IsSupportedAlgorithm(String)

Returns a value that indicates whether the specified algorithm is supported by this key.

IsSymmetricAlgorithm(String)

Returns a value that indicates whether the specified algorithm is symmetric.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to