The JBossWS-CXF source distribution comes with some samples using X.509 certificate signature and encryption as well as Username Token Profile. You can find them in package org.jboss.test.ws.jaxws.samples.wsse
Here are the common uses of Markdown.
Code surrounded in tildes is easier to read
[Red Hat Customer Portal](https://access.redhat.com)