C# Класс Raven.Bundles.Encryption.Settings.EncryptionSettingsManager

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

GetEncryptionSettingsForDatabase() публичный статический Метод

public static GetEncryptionSettingsForDatabase ( DocumentDatabase database ) : Raven.Bundles.Encryption.Settings.EncryptionSettings
database Raven.Database.DocumentDatabase
Результат Raven.Bundles.Encryption.Settings.EncryptionSettings

VerifyEncryptionKey() публичный статический Метод

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
Результат void