Ejemplo n.º 1
0
        public Response(string certificateStr)
        {
            RSAPKCS1SHA256SignatureDescription.Init(); //init the SHA256 crypto provider (for needed for .NET 4.0 and lower)

            _certificate = new Certificate();
            _certificate.LoadCertificate(certificateStr);
        }
Ejemplo n.º 2
0
        public AuthRequest(string issuer, string assertionConsumerServiceUrl)
        {
            RSAPKCS1SHA256SignatureDescription.Init(); //init the SHA256 crypto provider (for needed for .NET 4.0 and lower)

            _id            = "_" + System.Guid.NewGuid().ToString();
            _issue_instant = DateTime.Now.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ");

            _issuer = issuer;
            _assertionConsumerServiceUrl = assertionConsumerServiceUrl;
        }