C# Class NServiceBus.RijndaelEncryptionService

Inheritance: IEncryptionService
Afficher le fichier Open project: Particular/NServiceBus

Méthodes publiques

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

Méthodes protégées

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

Private Methods

Méthode 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 méthode

protected AddKeyIdentifierHeader ( IOutgoingLogicalMessageContext context ) : void
context IOutgoingLogicalMessageContext
Résultat void

ConfigureIV() protected méthode

protected ConfigureIV ( RijndaelManaged rijndael ) : void
rijndael System.Security.Cryptography.RijndaelManaged
Résultat void

Decrypt() public méthode

public Decrypt ( NServiceBus.EncryptedValue encryptedValue, IIncomingLogicalMessageContext context ) : string
encryptedValue NServiceBus.EncryptedValue
context IIncomingLogicalMessageContext
Résultat string

Encrypt() public méthode

public Encrypt ( string value, IOutgoingLogicalMessageContext context ) : NServiceBus.EncryptedValue
value string
context IOutgoingLogicalMessageContext
Résultat NServiceBus.EncryptedValue

RijndaelEncryptionService() public méthode

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

TryGetKeyIdentifierHeader() protected méthode

protected TryGetKeyIdentifierHeader ( string &keyIdentifier, IIncomingLogicalMessageContext context ) : bool
keyIdentifier string
context IIncomingLogicalMessageContext
Résultat bool