C# Class NServiceBus.RijndaelEncryptionService

Inheritance: IEncryptionService
Show file Open project: Particular/NServiceBus

Public Methods

Method Description
Decrypt ( NServiceBus.EncryptedValue encryptedValue, IIncomingLogicalMessageContext context ) : string
Encrypt ( string value, IOutgoingLogicalMessageContext context ) : NServiceBus.EncryptedValue
RijndaelEncryptionService ( string encryptionKeyIdentifier, byte[]>.IDictionary keys, IList decryptionKeys ) : System

Protected Methods

Method Description
AddKeyIdentifierHeader ( IOutgoingLogicalMessageContext context ) : void
ConfigureIV ( RijndaelManaged rijndael ) : void
TryGetKeyIdentifierHeader ( string &keyIdentifier, IIncomingLogicalMessageContext context ) : bool

Private Methods

Method Description
Decrypt ( NServiceBus.EncryptedValue encryptedValue, byte key ) : string
DecryptUsingAllKeys ( NServiceBus.EncryptedValue encryptedValue ) : string
DecryptUsingKeyIdentifier ( NServiceBus.EncryptedValue encryptedValue, string keyIdentifier ) : string
IsValidKey ( byte key ) : bool
VerifyEncryptionKey ( byte key ) : void
VerifyExpiredKeys ( IList keys ) : void

Method Details

AddKeyIdentifierHeader() protected method

protected AddKeyIdentifierHeader ( IOutgoingLogicalMessageContext context ) : void
context IOutgoingLogicalMessageContext
return void

ConfigureIV() protected method

protected ConfigureIV ( RijndaelManaged rijndael ) : void
rijndael System.Security.Cryptography.RijndaelManaged
return void

Decrypt() public method

public Decrypt ( NServiceBus.EncryptedValue encryptedValue, IIncomingLogicalMessageContext context ) : string
encryptedValue NServiceBus.EncryptedValue
context IIncomingLogicalMessageContext
return string

Encrypt() public method

public Encrypt ( string value, IOutgoingLogicalMessageContext context ) : NServiceBus.EncryptedValue
value string
context IOutgoingLogicalMessageContext
return NServiceBus.EncryptedValue

RijndaelEncryptionService() public method

public RijndaelEncryptionService ( string encryptionKeyIdentifier, byte[]>.IDictionary keys, IList decryptionKeys ) : System
encryptionKeyIdentifier string
keys byte[]>.IDictionary
decryptionKeys IList
return System

TryGetKeyIdentifierHeader() protected method

protected TryGetKeyIdentifierHeader ( string &keyIdentifier, IIncomingLogicalMessageContext context ) : bool
keyIdentifier string
context IIncomingLogicalMessageContext
return bool