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); }
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; }
public Response(byte[] certificateBytes) { RSAPKCS1SHA256SignatureDescription.Init(); //init the SHA256 crypto provider (for needed for .NET 4.0 and lower) _certificate = new X509Certificate2(certificateBytes); }