示例#1
0
 public ServiceCredentials()
 {
     UserNameAuthentication           = new UserNamePasswordServiceCredential();
     ClientCertificate                = new X509CertificateInitiatorServiceCredential();
     ServiceCertificate               = new X509CertificateRecipientServiceCredential();
     WindowsAuthentication            = new WindowsServiceCredential();
     IssuedTokenAuthentication        = new IssuedTokenServiceCredential();
     SecureConversationAuthentication = new SecureConversationServiceCredential();
     _exceptionMapper = new ExceptionMapper();
 }
示例#2
0
 public ServiceCredentials()
 {
     userName                = new UserNamePasswordServiceCredential();
     clientCertificate       = new X509CertificateInitiatorServiceCredential();
     serviceCertificate      = new X509CertificateRecipientServiceCredential();
     windows                 = new WindowsServiceCredential();
     this.issuedToken        = new IssuedTokenServiceCredential();
     this.secureConversation = new SecureConversationServiceCredential();
     exceptionMapper         = new ExceptionMapper();
 }
 public ServiceCredentials()
 {
     this.userName           = new UserNamePasswordServiceCredential();
     this.clientCertificate  = new X509CertificateInitiatorServiceCredential();
     this.serviceCertificate = new X509CertificateRecipientServiceCredential();
     this.windows            = new WindowsServiceCredential();
     this.issuedToken        = new IssuedTokenServiceCredential();
     this.peer = new PeerCredential();
     this.secureConversation = new SecureConversationServiceCredential();
 }
        internal void ApplyConfiguration(X509CertificateRecipientServiceCredential cert)
        {
            if (cert == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("cert");
            }
            PropertyInformationCollection properties = base.ElementInformation.Properties;

            if (((properties["storeLocation"].ValueOrigin != PropertyValueOrigin.Default) || (properties["storeName"].ValueOrigin != PropertyValueOrigin.Default)) || ((properties["x509FindType"].ValueOrigin != PropertyValueOrigin.Default) || (properties["findValue"].ValueOrigin != PropertyValueOrigin.Default)))
            {
                cert.SetCertificate(this.StoreLocation, this.StoreName, this.X509FindType, this.FindValue);
            }
        }
 protected ServiceCredentials(ServiceCredentials other)
 {
     if (other == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("other");
     }
     this.userName           = new UserNamePasswordServiceCredential(other.userName);
     this.clientCertificate  = new X509CertificateInitiatorServiceCredential(other.clientCertificate);
     this.serviceCertificate = new X509CertificateRecipientServiceCredential(other.serviceCertificate);
     this.windows            = new WindowsServiceCredential(other.windows);
     this.issuedToken        = new IssuedTokenServiceCredential(other.issuedToken);
     this.peer = new PeerCredential(other.peer);
     this.secureConversation = new SecureConversationServiceCredential(other.secureConversation);
 }
示例#6
0
 protected ServiceCredentials(ServiceCredentials other)
 {
     if (other == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(other));
     }
     UserNameAuthentication           = new UserNamePasswordServiceCredential(other.UserNameAuthentication);
     ClientCertificate                = new X509CertificateInitiatorServiceCredential(other.ClientCertificate);
     ServiceCertificate               = new X509CertificateRecipientServiceCredential(other.ServiceCertificate);
     WindowsAuthentication            = new WindowsServiceCredential(other.WindowsAuthentication);
     IssuedTokenAuthentication        = new IssuedTokenServiceCredential(other.IssuedTokenAuthentication);
     SecureConversationAuthentication = new SecureConversationServiceCredential(other.SecureConversationAuthentication);
     _saveBootstrapTokenInSession     = other._saveBootstrapTokenInSession;
     _exceptionMapper = other._exceptionMapper;
 }
示例#7
0
 protected ServiceCredentials(ServiceCredentials other)
 {
     if (other == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(other));
     }
     userName                    = new UserNamePasswordServiceCredential(other.userName);
     clientCertificate           = new X509CertificateInitiatorServiceCredential(other.clientCertificate);
     serviceCertificate          = new X509CertificateRecipientServiceCredential(other.serviceCertificate);
     windows                     = new WindowsServiceCredential(other.windows);
     this.issuedToken            = new IssuedTokenServiceCredential(other.issuedToken);
     this.secureConversation     = new SecureConversationServiceCredential(other.secureConversation);
     saveBootstrapTokenInSession = other.saveBootstrapTokenInSession;
     exceptionMapper             = other.exceptionMapper;
 }