Show / Hide Table of Contents

Interface IXmlDataEncryptionExtension

Supports XML data encryption extensions.

Inherited Members
IXmlEncryptionExtension.IsSupported(string)
Namespace: ComponentSpace.Saml2.XmlSecurity.Encryption
Assembly: ComponentSpace.Saml2.dll
Syntax
public interface IXmlDataEncryptionExtension : IXmlEncryptionExtension

Methods

CreateSymmetricKey(string)

Creates a random symmetric key.

Declaration
byte[] CreateSymmetricKey(string dataEncryptionAlgorithm)
Parameters
Type Name Description
string dataEncryptionAlgorithm

The data encryption algorithm.

Returns
Type Description
byte[]

The symmetric key.

DecryptData(EncryptedData, byte[], string)

Decrypts the data.

Declaration
byte[] DecryptData(EncryptedData encryptedData, byte[] symmetricKey, string dataEncryptionAlgorithm)
Parameters
Type Name Description
EncryptedData encryptedData

The encrypted data.

byte[] symmetricKey

The decryption key.

string dataEncryptionAlgorithm

The data encryption algorithm.

Returns
Type Description
byte[]

The decrypted data.

EncryptData(byte[], byte[], string)

Encrypts the data.

Declaration
byte[] EncryptData(byte[] plainText, byte[] symmetricKey, string dataEncryptionAlgorithm)
Parameters
Type Name Description
byte[] plainText

The data.

byte[] symmetricKey

The encryption key.

string dataEncryptionAlgorithm

The data encryption algorithm.

Returns
Type Description
byte[]

The encrypted data.

In this article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2025. All rights reserved.