C# Class Raven.Bundles.Encryption.Settings.EncryptionSettingsManager

Afficher le fichier Open project: robashton/ravendb

Méthodes publiques

Méthode Description
GetEncryptionSettingsForDatabase ( DocumentDatabase database ) : Raven.Bundles.Encryption.Settings.EncryptionSettings
VerifyEncryptionKey ( DocumentDatabase database, Raven.Bundles.Encryption.Settings.EncryptionSettings settings ) : void

Uses an encrypted document to verify that the encryption key is correct and decodes it to the right value.

Private Methods

Méthode Description
EncryptedDocumentsExist ( DocumentDatabase database ) : bool
GetEncryptIndexesFromString ( string value, bool defaultValue ) : bool
GetKeyFromBase64 ( string base64 ) : byte[]

A wrapper around Convert.FromBase64String, with extra validation and relevant exception messages.

GetTypeFromName ( string typeName ) : Type

A wrapper around Type.GetType, with extra validation and a default value.

Method Details

GetEncryptionSettingsForDatabase() public static méthode

public static GetEncryptionSettingsForDatabase ( DocumentDatabase database ) : Raven.Bundles.Encryption.Settings.EncryptionSettings
database Raven.Database.DocumentDatabase
Résultat Raven.Bundles.Encryption.Settings.EncryptionSettings

VerifyEncryptionKey() public static méthode

Uses an encrypted document to verify that the encryption key is correct and decodes it to the right value.
public static VerifyEncryptionKey ( DocumentDatabase database, Raven.Bundles.Encryption.Settings.EncryptionSettings settings ) : void
database Raven.Database.DocumentDatabase
settings Raven.Bundles.Encryption.Settings.EncryptionSettings
Résultat void