public VMCAServerNode (VMCAServerDTO dto) : base (dto) { this.DisplayName = dto.Server; IsLoggedIn = false; ActiveCertsList = new List<X509Certificate2> (); RevokedCertsList = new List<X509Certificate2> (); ExpiredCertsList = new List<X509Certificate2> (); }
public static void Validate (VMCAServerDTO serverDTO, string cert) { try { VMCACertificate.Validate (cert); } catch (Exception e) { throw e; } }
public static VMCAServerDTO CreateInstance () { var dto = new VMCAServerDTO { GUID = Guid.NewGuid ().ToString () }; dto.PrivateCertificates = new List<PrivateCertificateDTO> (); dto.SigningRequests = new List<SigningRequestDTO> (); dto.KeyPairs = new List<KeyPairDTO> (); dto.IsLoggedIn = false; return dto; }
public static void RevokeCertificate (X509Certificate2 cert, VMCAServerDTO dto) { try { var vmcaCert = new VMCACertificate (dto.VMCAClient, cert); vmcaCert.Revoke (); } catch (Exception e) { throw e; } }
public static string GetVersion (VMCAServerDTO dto) { string version = ""; try { version = dto.VMCAClient.GetServerVersion (); } catch (Exception e) { throw e; } return version; }
public static VMCAServerDTO CreateInstance() { var dto = new VMCAServerDTO { GUID = Guid.NewGuid().ToString() }; dto.PrivateCertificates = new List <PrivateCertificateDTO> (); dto.SigningRequests = new List <SigningRequestDTO> (); dto.KeyPairs = new List <KeyPairDTO> (); dto.IsLoggedIn = false; return(dto); }
public void AddServer (VMCAServerDTO dto) { var match = SerializableList.FirstOrDefault (listElement => string.Equals (listElement.Server, dto.Server)); if (match == null) { if (ServerQueue.Count >= CacheSize) { VMCAServerDTO item = ServerQueue.Dequeue (); SerializableList.Remove (item); } ServerQueue.Enqueue (dto); SerializableList.Add (dto); } }
public VMCAPersonalNode (VMCAServerDTO dto) : base (dto) { DisplayName = "Personal"; Tag = -1; InitNode (); }
public VMCACSRNode (VMCAServerDTO dto) : base (dto) { DisplayName = "Signing Requests"; }
public VMCAPersonalCertificatesNode (VMCAServerDTO dto) : base (dto) { DisplayName = "Certificates"; Tag = -1; }
public CertificateDetailsListView (List<X509Certificate2> certList, VMCAServerDTO dto, int state) { Entries = certList; ServerDto = dto; CertificateState = state; }
public VMCACertsNode (VMCAServerDTO dto) : base (dto) { }
public CSRDetailListView (List<SigningRequestDTO> nodesList, VMCAServerDTO dto) { _entries = nodesList; this.dto = dto; }
public NodesListView (List<ScopeNode> nodesList, VMCAServerDTO dto) { Entries = nodesList; ServerDTO = dto; }
public ChildScopeNode (VMCAServerDTO dto) { this.ServerDTO = dto; }
public VMCAKeyPairNode (VMCAServerDTO dto) : base (dto) { DisplayName = "Key Pairs"; Tag = -1; }
public PrivateCertsListView (List<PrivateCertificateDTO> certList, VMCAServerDTO dto, int state) { Entries = certList; ServerDto = dto; CertificateState = state; }