String id = "1234";
ep.getEndpointInfo().setProperty(TokenStore.class.getName(), new MemoryTokenStore());
ep.getEndpointInfo().setProperty(SecurityConstants.TOKEN_ID, id);
TokenStore store = (TokenStore)ep.getEndpointInfo().getProperty(TokenStore.class.getName());
SAMLParms samlParms = new SAMLParms();
samlParms.setCallbackHandler(new Saml2CallbackHandler());
AssertionWrapper assertion = new AssertionWrapper(samlParms);
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
DocumentBuilder db = dbf.newDocumentBuilder();
Element assertionElement = assertion.toDOM(db.newDocument());