Showing posts with label Strong Authentication. Show all posts
Showing posts with label Strong Authentication. Show all posts

Thursday, June 30, 2016

Tuesday, September 15, 2015

OAAM 11g CustomerCare API call to reset User profile

import com.bharosa.vcrypt.common.util.VCryptResponse;
import com.bharosa.vcrypt.customercare.impl.VCryptCCSOAPImpl;

/**
 * @author pokuri
 *
 */
public class OAAMProfileReset 
{
  public static void main(String[] args) 
  {
    OAAMProfileReset cu = new OAAMProfileReset();
    String response = "FAILED";
    try 
    {
      response = cu.resetUserProfile("siva.pokuri");
      System.out.println("Response " + response);
    }
    catch (Exception e) 
    {
      e.printStackTrace();
    }
  }

  public String resetUserProfile(String userName) 
  {
    System.out.println("Creating user: " + userName);
    try 
    {
      VCryptCCSOAPImpl vcc = new VCryptCCSOAPImpl();
      VCryptResponse vr = vcc.resetUser(userName);

      System.out.println("Status code Message " + vr.getResponseCode());

      if(vr.getResponseCode().equals("0"))
      {
        return "SUCCESS";
      }
      else
      {
        return "FAILED";
      }
    }
    catch (Exception e) 
    {
         }
    return "FAILED";
  }
}



-- Siva Pokuri.