コード例 #1
0
ファイル: Saml.cs プロジェクト: mat-chet/C-
            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);
            }
コード例 #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", System.Globalization.CultureInfo.InvariantCulture);

                _issuer = issuer;
                _assertionConsumerServiceUrl = assertionConsumerServiceUrl;
            }
コード例 #3
0
 public Response(byte[] certificateBytes)
 {
     RSAPKCS1SHA256SignatureDescription.Init();                 //init the SHA256 crypto provider (for needed for .NET 4.0 and lower)
     _certificate = new X509Certificate2(certificateBytes);
 }