I am basically making calls to AMIS servers REST API to create USER , Change PIN etc, The transaction is XML , but RSA client side Java API that makes XML transparent to the developer . I need a API doc for this so I can know the functionality
Have this sample code from RSA , I need a API doc
public static void main(String[] args) {
String amisUrl = "http://10.100.89.164:8080/am8";
String authUrl = "http://10.100.89.164:8080/auth";
String userId = "ssp164bind";
String passcode = "abcd1234";
String targetUserID = "sdoyle";
try {
AuthClient auth_client = new AuthClient(authUrl);
AuthenticationResult auth = auth_client.authenticate(userId, passcode);
if (auth.getAuthenticated() == true )
{
String authToken = auth.getAuthenticationToken().toString();
AMISClient client = new AMISClient(amisUrl);
UserSearchResults info = client.getUserInfo(targetUserID, authToken);
System.out.println("First Name: " + info.getResults().get(0).getFirstName());
System.out.println("Last Name: " + info.getResults().get(0).getLastName());
TokenSearchResults tokens = client.getUserTokenNumbers(targetUserID, authToken);
for(TokenSearchResultItem item : tokens.getResults())
{
System.out.println("Token: " + item.getTokenSN());
client.clearPin(item.getTokenSN(), authToken);
System.out.println("Pin cleared");
}
}
} catch(Exception ex)
{
System.out.println(ex);
}
}
Ramesh Arcot,
My apologies for taking so long to reply to your question. I've moved it from the RSA Access Manager space to the RSA SecurID Access space since it is about AMIS and related REST API.
Please let me know if you still have questions on this that we can help you answer.
Regards,
Erica