Exemple #1
0
        public static X509SigningCredentials GetSigningCredentials(this IRelyingParty rp)
        {
            var cert = rp.GetSigningCertificate();

            if (cert == null)
            {
                return(null);
            }
            return(new X509SigningCredentials(cert));
        }
Exemple #2
0
 public RequestScope(Uri uri, IRelyingParty rp) :
     base(uri.ToString(), rp.GetSigningCertificate().GetSigningCredentials())
 {
     RelyingParty          = rp;
     EncryptingCredentials = rp.GetEncryptingCertificate().GetEncryptingCredentials();
     if (EncryptingCredentials != null)
     {
         TokenEncryptionRequired        = true;
         SymmetricKeyEncryptionRequired = true;
     }
     else
     {
         TokenEncryptionRequired        = false;
         SymmetricKeyEncryptionRequired = false;
     }
 }
Exemple #3
0
 public RequestScope(Uri uri, IRelyingParty rp):
     base(uri.ToString(), rp.GetSigningCertificate().GetSigningCredentials())
 {
     RelyingParty = rp;
     EncryptingCredentials = rp.GetEncryptingCertificate().GetEncryptingCredentials();
     if (EncryptingCredentials != null)
     {
         TokenEncryptionRequired = true;
         SymmetricKeyEncryptionRequired = true;
     }
     else
     {
         TokenEncryptionRequired = false;
         SymmetricKeyEncryptionRequired = false;
     }
 }