private void GetConfig(XPathNavigator nav) { _application = new ApplicationConfig(GetChild(nav, "application"), null); _constants = new ConstantsConfig(GetChild(nav, "constants"), null); _encryption = new EncryptionConfig(GetChild(nav, "encryption"), null); _email = new EmailConfig(GetChild(nav, "email"), null); _user = new UserConfig(GetChild(nav, "user"), null); _environment = new EnvironmentConfig(GetChild(nav, "environment"), null); }
public EncryptionConfig(XPathNavigator nav, IEncryptionConfig template) { _template = template; if (_template != null) { _workFactor = _template.WorkFactor; _shiftFactor = _template.ShiftFactor; _shiftOffset = _template.ShiftOffset; _shiftDirection = _template.ShiftDirection; } SetWorkFactor(nav); SetShiftFactor(nav); SetShiftOffset(nav); SetShiftDirection(nav); }
public EncryptionService(IEncryptionConfig encryptionConfig) { this._encryptionKey = encryptionConfig.Key; this._encryptionIV = encryptionConfig.IV; }