Set up your HTTP client to use the siteminder authentication type.
public class TestScenario implements IAuthenticationChallengeListner
{
private void Testscenario()
{
//Register for the Listener
SDMRequestManager.setAuthentationChallengeListener(this);
/** Perform registration, do not provide login credentials to perform registration here, credentials to be provided on call back */
}
//call back method to return basic authentication credentials
@Override
public ICredential OnAuthenticationFailed(Authenticationschema authScheme,HttpResponse response) {
String test =authScheme.getRealm();
String schema = authScheme.getSchemeName();
BasicCredetials credentials = null;
if(schema == "Basic"){
credentials = new BasicCredetials("<username>", "<password>");
}
return credentials;
//else // implement your own Icredentials listener
}
}