public SpnegoTokenProvider(System.IdentityModel.SafeFreeCredentials credentialsHandle, SecurityBindingElement securityBindingElement) : base(securityBindingElement) { this.allowedImpersonationLevel = TokenImpersonationLevel.Identification; this.identityVerifier = System.ServiceModel.Security.IdentityVerifier.CreateDefault(); this.allowNtlm = true; this.authenticateServer = true; this.interactiveNegoExLogonEnabled = true; this.credentialsHandle = credentialsHandle; }
internal MessageSecurityProtocolFactory(MessageSecurityProtocolFactory factory) : base(factory) { this.applyIntegrity = true; this.applyConfidentiality = true; this.protectionRequirements = new ChannelProtectionRequirements(); this.requireIntegrity = true; this.requireConfidentiality = true; if (factory == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("factory"); } this.applyIntegrity = factory.applyIntegrity; this.applyConfidentiality = factory.applyConfidentiality; this.identityVerifier = factory.identityVerifier; this.protectionRequirements = new ChannelProtectionRequirements(factory.protectionRequirements); this.messageProtectionOrder = factory.messageProtectionOrder; this.requireIntegrity = factory.requireIntegrity; this.requireConfidentiality = factory.requireConfidentiality; this.doRequestSignatureConfirmation = factory.doRequestSignatureConfirmation; }