public static SecurityToken GetIssuedToken(string STSUrl, string audience, string signingCertificateNameClient, SecurityToken bootstrapToken)
        {
            var certificate2Client  = CertificateUtil.GetCertificate(StoreName.My, StoreLocation.LocalMachine, signingCertificateNameClient);
            var certificate2Service = CertificateUtil.GetCertificate(StoreName.My, StoreLocation.LocalMachine, SigningCertificateNameSTS);

            return(TokenClient.GetIssuedToken(new Uri(audience), certificate2Client, certificate2Service, new Uri(STSUrl), bootstrapToken));
        }
        public static SecurityToken GetIssuedToken(Uri audience)
        {
            var certificate2Client  = CertificateUtil.GetCertificate(StoreName.My, StoreLocation.LocalMachine, SigningCertificateNameClient);
            var certificate2Service = CertificateUtil.GetCertificate(StoreName.My, StoreLocation.LocalMachine, SigningCertificateNameSTS);
            var ep = new Uri("http://localhost:8080/sts/TokenService");

            return(TokenClient.GetIssuedToken(audience, certificate2Client, certificate2Service, ep, MakeBootstrapSecurityToken()));
        }