RSA Authentication Manager 8.1
Modified script looks like below:
private void distributeCTKIP(TokenDTO token, String inProfile, String inActCode)
throws InsufficientPrivilegeException, ConcurrentUpdateException, DataNotFoundException, Exception,
InvalidArgumentException, DuplicateDataException, ObjectInUseException, CommandException, SystemException{
String swtProGuid = getSWTProfileGuid(inProfile);
String tsn = token.getSerialNumber();
setSwtProfile(token, swtProGuid);
// GET TOKENDTO AGAIN
LookupTokenCommand ltc = new LookupTokenCommand();
ltc.setSerialNumber(tsn); // need token serial number
ltc.execute();
TokenDTO NewToken = ltc.getToken(); new token copy
token = null;
ltc.reset();
//
setCTKIPActCode(NewToken, inActCode);
getCTKIPActCode(NewToken, inActCode);
}
private void setCTKIPActCode(TokenDTO token, String inActCode)
throws InsufficientPrivilegeException, ConcurrentUpdateException, DataNotFoundException,
InvalidArgumentException, DuplicateDataException, ObjectInUseException, CommandException, SystemException{
CTKIPActivationCodeDTO ctkip = new CTKIPActivationCodeDTO();
ctkip.setTokenSerialNum(token.getSerialNumber());
ctkip.setActivationCode(inActCode);
token.setCtkipActivationCodeDTO(ctkip);
//token.setRowVersion(token.getRowVersion()+1); token this out
UpdateTokenCommand updateTok = new UpdateTokenCommand();
updateTok.setToken(token);
updateTok.execute();
}
Related Articles
Error Authentication Manager is unable to activate your selected certificate at this time. Ensure that all Authentication … 11Number of Views Add a Risk-Based Authentication Message Policy 4Number of Views Search for Users 6Number of Views Configuring Provisioning 9Number of Views Activate a Virtual Host Certificate 51Number of Views
Trending Articles
RSA MFA Agent 2.5 for Microsoft Windows Installation and Administration Guide User Application Portal The RSA Identity Governance & Lifecycle AD Collector and AD ADC authentication source fail to establish a TLS 1.2 SSL conn… RSA Authentication Manager 8.1 Quick Setup Fails with "Failed to Attach Replica Instance" How to Replace the Web Server Certificate for the RSA Identity Governance & Lifecycle Web Console