create the security binding element from code like this:
SymmetricSecurityBindingElement element = new SymmetricSecurityBindingElement(new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Thumbprint, SecurityTokenInclusionMode.Never));
element.EndpointSupportingTokenParameters.SignedEncrypted.Add(new UserNameSecurityTokenParameters());
element.MessageSecurityVersion = MessageSecurityVersion.WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11;
use this element as part of a custom binding. of course change the username token to your one. also you may want to slightly fine tune the other settings depending on your needs.
http://webservices20.blogspot.com/
WCF Security, Interoperability And Performance Blog