protected override void DecryptMessage() { if (DecryptionCertificate != null) { new Saml2EncryptedXml(XmlDocument, DecryptionCertificate.GetSamlRSAPrivateKey()).DecryptDocument(); #if DEBUG Debug.WriteLine("Saml2P (Decrypted): " + XmlDocument.OuterXml); #endif } }
internal void Validate() { if (MyHerId <= 0) { throw new ArgumentOutOfRangeException(nameof(MyHerId)); } if (DecryptionCertificate == null) { throw new ArgumentNullException(nameof(DecryptionCertificate)); } DecryptionCertificate.Validate(); if (SigningCertificate == null) { throw new ArgumentNullException(nameof(SigningCertificate)); } SigningCertificate.Validate(); ServiceBus.Validate(); }