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
System.String dataEncryptionAlgorithm

The data encryption algorithm.

Returns
Type Description
System.Byte[]

The symmetric key.

DecryptData(EncryptedData, Byte[], String)

Decrypts the data.

Declaration
byte[] DecryptData(EncryptedData encryptedData, byte[] symmetricKey, string dataEncryptionAlgorithm)
Parameters
Type Name Description
System.Security.Cryptography.Xml.EncryptedData encryptedData

The encrypted data.

System.Byte[] symmetricKey

The decryption key.

System.String dataEncryptionAlgorithm

The data encryption algorithm.

Returns
Type Description
System.Byte[]

The decrypted data.

EncryptData(Byte[], Byte[], String)

Encrypts the data.

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

The data.

System.Byte[] symmetricKey

The encryption key.

System.String dataEncryptionAlgorithm

The data encryption algorithm.

Returns
Type Description
System.Byte[]

The encrypted data.

In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2022. All rights reserved.