AnsweredAssumed Answered

Where can I find Java "CLIENT API documentation" for making calls to AMIS REST calls

Question asked by wNrdwca0qblkJKlNv2NSSUgnOgOPi9VxCKtBk5iX3nU= on Sep 7, 2016
Latest reply on Feb 22, 2017 by Erica Chalfin

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);
}

}

Outcomes