public CachedIssuedSecurityTokenProvider(Binding issuerBinding, EndpointAddress issuerAddress, EndpointAddress targetAddress, CachedClientCredentials clientCredentials) : base() { _clientCredentials = clientCredentials; this.IssuerAddress = issuerAddress; this.IssuerBinding = issuerBinding; this.TargetAddress = targetAddress; _factory = new WSTrustChannelFactory(IssuerBinding, IssuerAddress); _factory.Endpoint.Behaviors.Find <ClientCredentials>().ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None; _factory.TrustVersion = TrustVersion.WSTrust13; _factory.Credentials.UserName.UserName = _clientCredentials.UserName.UserName; _factory.Credentials.UserName.Password = _clientCredentials.UserName.Password; _factory.Credentials.Windows.ClientCredential.Domain = _clientCredentials.Windows.ClientCredential.Domain; _factory.Credentials.Windows.ClientCredential.UserName = _clientCredentials.Windows.ClientCredential.UserName; _factory.Credentials.Windows.ClientCredential.Password = _clientCredentials.Windows.ClientCredential.Password; }
public CachedClientCredentialsSecurityTokenManager(CachedClientCredentials clientCredentials) : base(clientCredentials) { }
public CachedClientCredentials(CachedClientCredentials clientCredentials) : base(clientCredentials) { this.TokenCache = clientCredentials.TokenCache; }