Exemplo n.º 1
0
        public RelyingPartySpec EncryptionCertificateIdentifiedBy(string thumbprint, StoreName storeName = StoreName.My, StoreLocation storeLocation = StoreLocation.CurrentUser)
        {
            Guard.NotNullOrEmpty(() => thumbprint, thumbprint);

            var certificate = X509CertificateHelper.GetX509Certificate(thumbprint, storeName, storeLocation);

            this.encryptionCert = certificate.GetRawCertData();
            return(this);
        }
Exemplo n.º 2
0
        public ServiceIdentityWithX509CertificateSpec EncryptionCertificateIdentifiedBy(string thumbprint, StoreName storeName = StoreName.My, StoreLocation storeLocation = StoreLocation.CurrentUser)
        {
            var certificate = X509CertificateHelper.GetX509Certificate(thumbprint, storeName, storeLocation);

            return(this.EncryptionCertificate(certificate));
        }