Class AcquireBearerTokenByUserCredentialSample


  • public class AcquireBearerTokenByUserCredentialSample
    extends java.lang.Object
    This sample illustrates acquiring a bearer token from SSO server by passing the username and password of the user
     Usage:
     run.bat com.vmware.sso.client.samples.AcquireBearerTokenByUserCredentialSample [sso url] [username] [password]
     
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.w3c.dom.Element getToken​(java.lang.String[] args)  
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AcquireBearerTokenByUserCredentialSample

        public AcquireBearerTokenByUserCredentialSample()
    • Method Detail

      • getToken

        public static org.w3c.dom.Element getToken​(java.lang.String[] args)
                                            throws javax.xml.datatype.DatatypeConfigurationException
        Parameters:
        args - String array containing the following values in the below order:
        • SSO server url
        • username
        • password
        Returns:
        Element representing the Token issued
        Throws:
        javax.xml.datatype.DatatypeConfigurationException
      • main

        public static void main​(java.lang.String[] args)
                         throws javax.xml.datatype.DatatypeConfigurationException
        Throws:
        javax.xml.datatype.DatatypeConfigurationException