public void Load(PSHost host) { ManagementService.Initialize(host, true); // MFAConfig cfg = ManagementService.ADFSManager.ReadConfiguration(host); MFAConfig cfg = ManagementService.Config; KeysManagerConfig otp = cfg.KeysConfig; this.FullQualifiedImplementation = otp.ExternalKeyManager.FullQualifiedImplementation; this.Parameters = otp.ExternalKeyManager.Parameters; }
/// <summary> /// Update method implmentation /// </summary> public void Update(PSHost host) { ManagementService.Initialize(host, true); // MFAConfig cfg = ManagementService.ADFSManager.Config; MFAConfig cfg = ManagementService.Config; KeysManagerConfig otp = cfg.KeysConfig; otp.ExternalKeyManager.FullQualifiedImplementation = this.FullQualifiedImplementation; otp.ExternalKeyManager.Parameters = this.Parameters; ManagementService.ADFSManager.WriteConfiguration(host); }
public void Load(PSHost host) { ManagementService.Initialize(host, true); MFAConfig cfg = ManagementService.Config; KeysManagerConfig otp = cfg.KeysConfig; this.FullQualifiedImplementation = otp.ExternalKeyManager.FullQualifiedImplementation; this.ThumbPrint = otp.ExternalKeyManager.ThumbPrint; this.IsAlwaysEncrypted = otp.ExternalKeyManager.IsAlwaysEncrypted; this.Parameters = otp.ExternalKeyManager.Parameters; }
/// <summary> /// Update method implmentation /// </summary> public void Load(PSHost host) { ManagementService.Initialize(host, true); MFAConfig cfg = ManagementService.Config; KeysManagerConfig keys = cfg.KeysConfig; IsDirty = cfg.IsDirty; this.CertificateThumbprint = keys.CertificateThumbprint; this.CertificateValidity = keys.CertificateValidity; this.KeyFormat = keys.KeyFormat; this.KeyGenerator = keys.KeyGenerator; this.KeySize = keys.KeySize; this.ExternalKeyManager = (FlatExternalKeyManager)keys.ExternalKeyManager; }
public void Load(PSHost host) { ManagementService.Initialize(host, true); MFAConfig cfg = ManagementService.Config; KeysManagerConfig otp = cfg.KeysConfig; this.FullQualifiedImplementation = otp.ExternalKeyManager.FullQualifiedImplementation; this.ThumbPrint = otp.ExternalKeyManager.ThumbPrint; this.KeyName = otp.ExternalKeyManager.KeyName; this.CertificateValidity = otp.ExternalKeyManager.CertificateValidity; this.CertReuse = otp.ExternalKeyManager.CertReuse; this.ConnectionString = otp.ExternalKeyManager.ConnectionString; this.IsAlwaysEncrypted = otp.ExternalKeyManager.IsAlwaysEncrypted; this.Parameters = otp.ExternalKeyManager.Parameters.Data; }
/// <summary> /// Update method implmentation /// </summary> public void Update(PSHost host) { ManagementService.Initialize(host, true); MFAConfig cfg = ManagementService.Config; KeysManagerConfig keys = cfg.KeysConfig; cfg.IsDirty = true; keys.CertificateThumbprint = this.CertificateThumbprint; keys.CertificateValidity = this.CertificateValidity; keys.KeyFormat = this.KeyFormat; keys.KeyGenerator = this.KeyGenerator; keys.KeySize = this.KeySize; keys.ExternalKeyManager = (ExternalKeyManagerConfig)this.ExternalKeyManager; ManagementService.ADFSManager.WriteConfiguration(host); }
/// <summary> /// Update method implmentation /// </summary> public void Update(PSHost host) { ManagementService.Initialize(host, true); MFAConfig cfg = ManagementService.Config; KeysManagerConfig otp = cfg.KeysConfig; otp.ExternalKeyManager.FullQualifiedImplementation = this.FullQualifiedImplementation; otp.ExternalKeyManager.ThumbPrint = this.ThumbPrint; otp.ExternalKeyManager.KeyName = this.KeyName; otp.CertificateValidity = this.CertificateValidity; otp.ExternalKeyManager.CertReuse = this.CertReuse; otp.ExternalKeyManager.ConnectionString = this.ConnectionString; otp.ExternalKeyManager.IsAlwaysEncrypted = this.IsAlwaysEncrypted; otp.ExternalKeyManager.Parameters.Data = this.Parameters; ManagementService.ADFSManager.WriteConfiguration(host); }