Red Hat Training

A Red Hat training course is available for JBoss Enterprise SOA Platform

19.4. Obtain an authToken

Procedure 19.1. Task

  1. Make a GetAuthToken() request.
  2. A GetAuthToken object is returned. Set a userid and credential (password) on this object:
    org.uddi.api_v3.GetAuthToken ga = new org.uddi.api_v3.GetAuthToken();
    ga.setUserID(pubId);
    ga.setCred("");
    
    org.uddi.api_v3.AuthToken token = securityService.getAuthToken(ga);
    
  3. Locate the juddi.properties configuration file in SOA_ROOT/jboss-as/server/PROFILE/deploy/juddi-service.sar/juddi.war/WEB-INF. Open it in a text editor.
  4. Configure the juddi.authenticator property to how the Service Registry will check the credentials passed to it by the GetAuthToken request. (By default it uses the jUDDIAuthenticator implementation.)
  5. Save the file and exit.