000013475 - AM7.1-how to assign a PIN using 7.x SDK

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000013475
Applies ToAuthentication Manager 7.1
setpin
IssuePIN operations with 7.1 SDK
TokenDTO.setPin function is mentioned in 9/2008 SDK javadoc but specified as a read-only attribute of the TokenDTO class.
CausePIN-related functions are now supported but the SDK documenation has not yet been updated.
ResolutionAny Authentication Manager patch after March 2009 supports this TokenDTO function.  Sample usage is as follows:

                      LookupTokenCommand lookup = new LookupTokenCommand();

                        lookup.setSerialNumber("000024657988");

                        lookup.execute();

                        TokenDTO tok = lookup.getToken(); 

                        UpdateTokenCommand updateTok = new UpdateTokenCommand();

                        tok.setPinIsSet(true);

 

                        //set PIN

                        tok.setPin("123456"); 

                        //set new PIN mode

                        tok.setNewPinMode(false);

 

                        updateTok.setToken(tok);

                        updateTok.execute();

 

Legacy Article IDa47370

Attachments

    Outcomes