EncryptedKeyIdentifierClause Constructors

Definition

Initializes a new instance of the EncryptedKeyIdentifierClause class.

Overloads

EncryptedKeyIdentifierClause(Byte[], String)

Initializes a new instance of the EncryptedKeyIdentifierClause class using the specified key that is encrypted and the cryptographic algorithm used to encrypt the key.

EncryptedKeyIdentifierClause(Byte[], String, SecurityKeyIdentifier)

Initializes a new instance of the EncryptedKeyIdentifierClause class using the specified key that is encrypted, the cryptographic algorithm used to encrypt the key, and a key identifier for the encrypting key.

EncryptedKeyIdentifierClause(Byte[], String, SecurityKeyIdentifier, String)

Initializes a new instance of the EncryptedKeyIdentifierClause class using the specified key that is encrypted, the cryptographic algorithm used to encrypt the key, a key identifier for the encrypting key and a user-readable name.

EncryptedKeyIdentifierClause(Byte[], String, SecurityKeyIdentifier, String, Byte[], Int32)

Initializes a new instance of the EncryptedKeyIdentifierClause class using the specified key that is encrypted, the cryptographic algorithm used to encrypt the key, a key identifier for the key and a user-readable name.

EncryptedKeyIdentifierClause(Byte[], String)

Source:
EncryptedKeyIdentifierClause.cs
Source:
EncryptedKeyIdentifierClause.cs
Source:
EncryptedKeyIdentifierClause.cs

Initializes a new instance of the EncryptedKeyIdentifierClause class using the specified key that is encrypted and the cryptographic algorithm used to encrypt the key.

public:
 EncryptedKeyIdentifierClause(cli::array <System::Byte> ^ encryptedKey, System::String ^ encryptionMethod);
public EncryptedKeyIdentifierClause (byte[] encryptedKey, string encryptionMethod);
new System.IdentityModel.Tokens.EncryptedKeyIdentifierClause : byte[] * string -> System.IdentityModel.Tokens.EncryptedKeyIdentifierClause
Public Sub New (encryptedKey As Byte(), encryptionMethod As String)

Parameters

encryptedKey
Byte[]

An array of Byte that contains a key that is encrypted. Sets the value that is returned from the GetEncryptedKey() method.

encryptionMethod
String

The cryptographic algorithm that is used to encrypt the key. Sets the value of the EncryptionMethod property.

Exceptions

encryptionMethod is null.

-or-

encryptedKey is null.

encryptedKey is zero length.

Remarks

Use the static constant strings in the SecurityAlgorithms to specify the cryptographic algorithm for the encryptionMethod parameter.

Applies to

EncryptedKeyIdentifierClause(Byte[], String, SecurityKeyIdentifier)

Source:
EncryptedKeyIdentifierClause.cs
Source:
EncryptedKeyIdentifierClause.cs
Source:
EncryptedKeyIdentifierClause.cs

Initializes a new instance of the EncryptedKeyIdentifierClause class using the specified key that is encrypted, the cryptographic algorithm used to encrypt the key, and a key identifier for the encrypting key.

public:
 EncryptedKeyIdentifierClause(cli::array <System::Byte> ^ encryptedKey, System::String ^ encryptionMethod, System::IdentityModel::Tokens::SecurityKeyIdentifier ^ encryptingKeyIdentifier);
public EncryptedKeyIdentifierClause (byte[] encryptedKey, string encryptionMethod, System.IdentityModel.Tokens.SecurityKeyIdentifier encryptingKeyIdentifier);
new System.IdentityModel.Tokens.EncryptedKeyIdentifierClause : byte[] * string * System.IdentityModel.Tokens.SecurityKeyIdentifier -> System.IdentityModel.Tokens.EncryptedKeyIdentifierClause
Public Sub New (encryptedKey As Byte(), encryptionMethod As String, encryptingKeyIdentifier As SecurityKeyIdentifier)

Parameters

encryptedKey
Byte[]

An array of Byte that contains a key that is encrypted. Sets the value that is returned from the GetEncryptedKey() method.

encryptionMethod
String

The cryptographic algorithm that is used to encrypt the key. Sets the value of the EncryptionMethod property.

encryptingKeyIdentifier
SecurityKeyIdentifier

A SecurityKeyIdentifier that represents the key identifier for the encrypting key that is specified in the encryptedKey parameter. Sets the value of the EncryptingKeyIdentifier property.

Exceptions

encryptionMethod is null.

-or-

encryptedKey is null.

encryptedKey is zero length.

Remarks

Use the static constant strings in the SecurityAlgorithms to specify the cryptographic algorithm for the encryptionMethod parameter.

Applies to

EncryptedKeyIdentifierClause(Byte[], String, SecurityKeyIdentifier, String)

Source:
EncryptedKeyIdentifierClause.cs
Source:
EncryptedKeyIdentifierClause.cs
Source:
EncryptedKeyIdentifierClause.cs

Initializes a new instance of the EncryptedKeyIdentifierClause class using the specified key that is encrypted, the cryptographic algorithm used to encrypt the key, a key identifier for the encrypting key and a user-readable name.

public:
 EncryptedKeyIdentifierClause(cli::array <System::Byte> ^ encryptedKey, System::String ^ encryptionMethod, System::IdentityModel::Tokens::SecurityKeyIdentifier ^ encryptingKeyIdentifier, System::String ^ carriedKeyName);
public EncryptedKeyIdentifierClause (byte[] encryptedKey, string encryptionMethod, System.IdentityModel.Tokens.SecurityKeyIdentifier encryptingKeyIdentifier, string carriedKeyName);
new System.IdentityModel.Tokens.EncryptedKeyIdentifierClause : byte[] * string * System.IdentityModel.Tokens.SecurityKeyIdentifier * string -> System.IdentityModel.Tokens.EncryptedKeyIdentifierClause
Public Sub New (encryptedKey As Byte(), encryptionMethod As String, encryptingKeyIdentifier As SecurityKeyIdentifier, carriedKeyName As String)

Parameters

encryptedKey
Byte[]

An array of Byte that contains a key that is encrypted. Sets the value that is returned from the GetEncryptedKey() method.

encryptionMethod
String

The cryptographic algorithm that is used to encrypt the key. Sets the value of the EncryptionMethod property.

encryptingKeyIdentifier
SecurityKeyIdentifier

A SecurityKeyIdentifier that represents the key identifier for the encrypting key specified in the encryptedKey parameter. Sets the value of the EncryptingKeyIdentifier property.

carriedKeyName
String

A user-readable name that is associated with the key specified in the encryptedKey parameter. Sets the value of the CarriedKeyName property.

Exceptions

encryptionMethod is null.

-or-

encryptedKey is null.

encryptedKey is zero length.

Remarks

Use the static constant strings in the SecurityAlgorithms to specify the cryptographic algorithm for the encryptionMethod parameter.

Applies to

EncryptedKeyIdentifierClause(Byte[], String, SecurityKeyIdentifier, String, Byte[], Int32)

Source:
EncryptedKeyIdentifierClause.cs
Source:
EncryptedKeyIdentifierClause.cs
Source:
EncryptedKeyIdentifierClause.cs

Initializes a new instance of the EncryptedKeyIdentifierClause class using the specified key that is encrypted, the cryptographic algorithm used to encrypt the key, a key identifier for the key and a user-readable name.

public:
 EncryptedKeyIdentifierClause(cli::array <System::Byte> ^ encryptedKey, System::String ^ encryptionMethod, System::IdentityModel::Tokens::SecurityKeyIdentifier ^ encryptingKeyIdentifier, System::String ^ carriedKeyName, cli::array <System::Byte> ^ derivationNonce, int derivationLength);
public EncryptedKeyIdentifierClause (byte[] encryptedKey, string encryptionMethod, System.IdentityModel.Tokens.SecurityKeyIdentifier encryptingKeyIdentifier, string carriedKeyName, byte[] derivationNonce, int derivationLength);
new System.IdentityModel.Tokens.EncryptedKeyIdentifierClause : byte[] * string * System.IdentityModel.Tokens.SecurityKeyIdentifier * string * byte[] * int -> System.IdentityModel.Tokens.EncryptedKeyIdentifierClause
Public Sub New (encryptedKey As Byte(), encryptionMethod As String, encryptingKeyIdentifier As SecurityKeyIdentifier, carriedKeyName As String, derivationNonce As Byte(), derivationLength As Integer)

Parameters

encryptedKey
Byte[]

An array of Byte that contains a key that is encrypted. Sets the value that is returned from the GetEncryptedKey() method.

encryptionMethod
String

The cryptographic algorithm that is used to encrypt the key. Sets the value of the EncryptionMethod property.

encryptingKeyIdentifier
SecurityKeyIdentifier

A SecurityKeyIdentifier that represents the key identifier for the key specified in the encryptedKey parameter. Sets the value of the EncryptingKeyIdentifier property.

carriedKeyName
String

A user-readable name that is associated with the key specified in the encryptedKey parameter. Sets the value of the CarriedKeyName property.

derivationNonce
Byte[]

An array of Byte that contains the nonce that was used to create a derived key. Sets the value that is returned by the GetDerivationNonce() method.

derivationLength
Int32

The size of the derived key. Sets the value of the DerivationLength property.

Exceptions

encryptionMethod is null.

-or-

encryptedKey is null.

encryptedKey is zero length.

Remarks

When the derivationNonce and derivationLength parameters are specified the implied derived key is used instead of the direct security key of the token.

Use the static constant strings in the SecurityAlgorithms to specify the cryptographic algorithm for the encryptionMethod parameter.

Applies to