예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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);
        }