The code examples in the following sections show how to use the LoginByToken method with a holder-of-key security token. The code examples are based on the sample code contained in the vCenter Single Sign On SDK. The files are located in the Java samples directory (SDK/ssoclient/java/JAXWS/samples):

  • LoginByToken sample:


  • Header cookie handlers:



  • SOAP header handlers. These are the same handlers that are used in the vCenter Single Sign-On example in vCenter Single Sign On Programming Guide. The SOAP handler files are contained in the vCenter Single Sign-On SDK and are located in the SSO client soaphandlers directory: