How to generate SAML token in spring manually?

How to generate saml token, which was provided in debug, manually, like encoded string ?