void ReleaseDesignerOutlets() { if (TxtAlias != null) { TxtAlias.Dispose(); TxtAlias = null; } if (BtnJit != null) { BtnJit.Dispose(); BtnJit = null; } if (BtnViewCertificate != null) { BtnViewCertificate.Dispose(); BtnViewCertificate = null; } if (CertificateTableView != null) { CertificateTableView.Dispose(); CertificateTableView = null; } if (NameFormatTableView != null) { NameFormatTableView.Dispose(); NameFormatTableView = null; } if (SloTableView != null) { SloTableView.Dispose(); SloTableView = null; } if (SsoTableView != null) { SsoTableView.Dispose(); SsoTableView = null; } if (SubjectFormatTableView != null) { SubjectFormatTableView.Dispose(); SubjectFormatTableView = null; } if (TxtEntityName != null) { TxtEntityName.Dispose(); TxtEntityName = null; } }
private void ReloadCertificates() { foreach (NSTableColumn column in CertificateTableView.TableColumns()) { CertificateTableView.RemoveColumn(column); } CertificateTableView.Delegate = new CertTableDelegate(); var listView = new TrustedCertificatesDataSource { Entries = TenantConfigurationDto.AuthenticationPolicy.ClientCertificatePolicy.TrustedCACertificates }; var columnNames = new List <ColumnOptions> { new ColumnOptions { Id = "SubjectDn", DisplayName = "Subject DN", DisplayOrder = 1, Width = 120 }, new ColumnOptions { Id = "IssuedBy", DisplayName = "Issuer", DisplayOrder = 1, Width = 150 }, new ColumnOptions { Id = "IssuedOn", DisplayName = "Valid From", DisplayOrder = 1, Width = 80 }, new ColumnOptions { Id = "Expiration", DisplayName = "Valid To", DisplayOrder = 1, Width = 80 }, new ColumnOptions { Id = "Fingerprint", DisplayName = "FingerPrint", DisplayOrder = 1, Width = 150 } }; var columns = ListViewHelper.ToNSTableColumns(columnNames); foreach (var column in columns) { CertificateTableView.AddColumn(column); } CertificateTableView.DataSource = listView; CertificateTableView.ReloadData(); BtnAuthenticationRemoveCertificate.Enabled = TenantConfigurationDto.AuthenticationPolicy.ClientCertificatePolicy.TrustedCACertificates != null && TenantConfigurationDto.AuthenticationPolicy.ClientCertificatePolicy.TrustedCACertificates.Count > 0; }
private void ReloadCertificates() { foreach (NSTableColumn column in CertificateTableView.TableColumns()) { CertificateTableView.RemoveColumn(column); } CertificateTableView.Delegate = new CertTableDelegate(); var listView = new TrustedCertificatesDataSource { Entries = ExternalIdentityProviderDto.SigningCertificates.Certificates }; var columnNames = new List <ColumnOptions> { new ColumnOptions { Id = "SubjectDn", DisplayName = "Subject DN", DisplayOrder = 1, Width = 120 }, new ColumnOptions { Id = "IssuedBy", DisplayName = "Issuer", DisplayOrder = 1, Width = 150 }, new ColumnOptions { Id = "IssuedOn", DisplayName = "Valid From", DisplayOrder = 1, Width = 80 }, new ColumnOptions { Id = "Expiration", DisplayName = "Valid To", DisplayOrder = 1, Width = 80 }, new ColumnOptions { Id = "Fingerprint", DisplayName = "FingerPrint", DisplayOrder = 1, Width = 150 } }; var columns = ListViewHelper.ToNSTableColumns(columnNames); foreach (var column in columns) { CertificateTableView.AddColumn(column); } CertificateTableView.DataSource = listView; CertificateTableView.ReloadData(); }
void ReleaseDesignerOutlets() { if (AuthenticationPolicyOidTableView != null) { AuthenticationPolicyOidTableView.Dispose(); AuthenticationPolicyOidTableView = null; } if (BtnAuthenticationAddCertificate != null) { BtnAuthenticationAddCertificate.Dispose(); BtnAuthenticationAddCertificate = null; } if (BtnAuthenticationPolicyAddPolicyOid != null) { BtnAuthenticationPolicyAddPolicyOid.Dispose(); BtnAuthenticationPolicyAddPolicyOid = null; } if (BtnAuthenticationRemoveCertificate != null) { BtnAuthenticationRemoveCertificate.Dispose(); BtnAuthenticationRemoveCertificate = null; } if (BtnAuthenticationRemovePolicyOid != null) { BtnAuthenticationRemovePolicyOid.Dispose(); BtnAuthenticationRemovePolicyOid = null; } if (BtnClose != null) { BtnClose.Dispose(); BtnClose = null; } if (BtnSave != null) { BtnSave.Dispose(); BtnSave = null; } if (BtnUploadContent != null) { BtnUploadContent.Dispose(); BtnUploadContent = null; } if (CertificateTableView != null) { CertificateTableView.Dispose(); CertificateTableView = null; } if (ChkAuthentiationPolicyWindows != null) { ChkAuthentiationPolicyWindows.Dispose(); ChkAuthentiationPolicyWindows = null; } if (ChkAuthenticationCrlDistribution != null) { ChkAuthenticationCrlDistribution.Dispose(); ChkAuthenticationCrlDistribution = null; } if (ChkAuthenticationFailoverToCrl != null) { ChkAuthenticationFailoverToCrl.Dispose(); ChkAuthenticationFailoverToCrl = null; } if (ChkAuthenticationOcsp != null) { ChkAuthenticationOcsp.Dispose(); ChkAuthenticationOcsp = null; } if (ChkAuthenticationPolicyCertificate != null) { ChkAuthenticationPolicyCertificate.Dispose(); ChkAuthenticationPolicyCertificate = null; } if (ChkAuthenticationPolicyPassword != null) { ChkAuthenticationPolicyPassword.Dispose(); ChkAuthenticationPolicyPassword = null; } if (ChkAuthetnicationRevocationCheck != null) { ChkAuthetnicationRevocationCheck.Dispose(); ChkAuthetnicationRevocationCheck = null; } if (ChkDisableLogonBanner != null) { ChkDisableLogonBanner.Dispose(); ChkDisableLogonBanner = null; } if (ChkLogonBannerCheckbox != null) { ChkLogonBannerCheckbox.Dispose(); ChkLogonBannerCheckbox = null; } if (TxtAuthenticationOcspUrlOverride != null) { TxtAuthenticationOcspUrlOverride.Dispose(); TxtAuthenticationOcspUrlOverride = null; } if (TxtAuthenticationPolicyOid != null) { TxtAuthenticationPolicyOid.Dispose(); TxtAuthenticationPolicyOid = null; } if (TxtBrandLogonBanner != null) { TxtBrandLogonBanner.Dispose(); TxtBrandLogonBanner = null; } if (TxtBrandName != null) { TxtBrandName.Dispose(); TxtBrandName = null; } if (TxtCrlDistributionPointOverride != null) { TxtCrlDistributionPointOverride.Dispose(); TxtCrlDistributionPointOverride = null; } if (TxtHokMaxRefreshTime != null) { TxtHokMaxRefreshTime.Dispose(); TxtHokMaxRefreshTime = null; } if (TxtLockoutAutoUnlockINterval != null) { TxtLockoutAutoUnlockINterval.Dispose(); TxtLockoutAutoUnlockINterval = null; } if (TxtLockoutDescription != null) { TxtLockoutDescription.Dispose(); TxtLockoutDescription = null; } if (TxtLockoutFailedAttemptInterval != null) { TxtLockoutFailedAttemptInterval.Dispose(); TxtLockoutFailedAttemptInterval = null; } if (TxtLockoutMaxFailedAttempts != null) { TxtLockoutMaxFailedAttempts.Dispose(); TxtLockoutMaxFailedAttempts = null; } if (TxtLogonBannerTitle != null) { TxtLogonBannerTitle.Dispose(); TxtLogonBannerTitle = null; } if (TxtPasswordDescription != null) { TxtPasswordDescription.Dispose(); TxtPasswordDescription = null; } if (TxtPasswordLifetime != null) { TxtPasswordLifetime.Dispose(); TxtPasswordLifetime = null; } if (TxtPasswordMaxIdenticalAdjChars != null) { TxtPasswordMaxIdenticalAdjChars.Dispose(); TxtPasswordMaxIdenticalAdjChars = null; } if (TxtPasswordMaxLength != null) { TxtPasswordMaxLength.Dispose(); TxtPasswordMaxLength = null; } if (TxtPasswordMinAlphaCount != null) { TxtPasswordMinAlphaCount.Dispose(); TxtPasswordMinAlphaCount = null; } if (TxtPasswordMinLength != null) { TxtPasswordMinLength.Dispose(); TxtPasswordMinLength = null; } if (TxtPasswordMinLowercaseCount != null) { TxtPasswordMinLowercaseCount.Dispose(); TxtPasswordMinLowercaseCount = null; } if (TxtPasswordMinNumericCount != null) { TxtPasswordMinNumericCount.Dispose(); TxtPasswordMinNumericCount = null; } if (TxtPasswordMinSpecialCharCount != null) { TxtPasswordMinSpecialCharCount.Dispose(); TxtPasswordMinSpecialCharCount = null; } if (TxtPasswordMinUpperCaseCount != null) { TxtPasswordMinUpperCaseCount.Dispose(); TxtPasswordMinUpperCaseCount = null; } if (TxtPasswordProhibitedPreviousPasswordCount != null) { TxtPasswordProhibitedPreviousPasswordCount.Dispose(); TxtPasswordProhibitedPreviousPasswordCount = null; } if (TxtProviderDefault != null) { TxtProviderDefault.Dispose(); TxtProviderDefault = null; } if (TxtTokenBearerMaxLifetime != null) { TxtTokenBearerMaxLifetime.Dispose(); TxtTokenBearerMaxLifetime = null; } if (TxtTokenBearerMaxRefreshTime != null) { TxtTokenBearerMaxRefreshTime.Dispose(); TxtTokenBearerMaxRefreshTime = null; } if (TxtTokenClockTolerence != null) { TxtTokenClockTolerence.Dispose(); TxtTokenClockTolerence = null; } if (TxtTokenDelegateCount != null) { TxtTokenDelegateCount.Dispose(); TxtTokenDelegateCount = null; } if (TxtTokenHokMaxLifetime != null) { TxtTokenHokMaxLifetime.Dispose(); TxtTokenHokMaxLifetime = null; } if (TxtTokenRenewCount != null) { TxtTokenRenewCount.Dispose(); TxtTokenRenewCount = null; } if (DefaultProviderAlias != null) { DefaultProviderAlias.Dispose(); DefaultProviderAlias = null; } if (CbEnablePoviderSelection != null) { CbEnablePoviderSelection.Dispose(); CbEnablePoviderSelection = null; } }