/// <summary> /// Gets the subject from context. /// </summary> /// <param name="context">The context.</param> /// <returns></returns> public static string GetSubjectFromContext(HttpContext context) { var parser = new DodPkiCertificateParser(context); return(parser.subject); }
/// <summary> /// Gets the electronic data interchange personal identifier from a HttpContext. /// </summary> /// <param name="context"> /// The context. /// </param> /// <returns> /// The electronic data interchange personal identifier for the client associated with the request. /// </returns> public static string GetEdipiFromContext(HttpContext context) { var parser = new DodPkiCertificateParser(context); return(parser.edipi); }