コード例 #1
0
        protected override void DecryptMessage()
        {
            if (DecryptionCertificate != null)
            {
                new Saml2EncryptedXml(XmlDocument, DecryptionCertificate.GetSamlRSAPrivateKey()).DecryptDocument();
#if DEBUG
                Debug.WriteLine("Saml2P (Decrypted): " + XmlDocument.OuterXml);
#endif
            }
        }
コード例 #2
0
 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();
 }