This chapter describes a Java example of acquiring a vCenter Single Sign-On security token. What to read next vCenter Single Sign-On Token Request Overview Using Handler Methods for SOAP Headers in JavaThe VMware vCenter Single Sign-On SDK provides sample code that is an extension of the JAX-WS XML Web services message handler (javax.xml.ws.handler). The sample code consists of a set of SOAP header handler methods and a header handler resolver, to which you add the handler methods. The handler methods insert timestamp, user credential, and message signature data into the SOAP security header for the request. A handler method extracts the SAML token from the vCenter Single Sign-On server response. Sending a Request for a Security Token in JavaAfter setting up the SOAP header handlers, the example creates a token request and calls the issue method. The following sequence shows the operations and corresponding Java elements.