Announcements

SecurID® Discussions

Browse the SecurID discussion board to get product help and collaborate with other SecurID users.
RanYohai
Beginner
Beginner

Adding token attribute in Java using the RSA AM 8.1 API

Hi

 

I'm trying to add token attribute in java using the RSA Authentication Manager 8.1 API.

 

I've coded the following lines:

 

AMAttributeDefinitionDTO def = new AMAttributeDefinitionDTO();
def.setAttrName(attributeName);
AddAMAttributeDefinitionCommand addDef = new AddAMAttributeDefinitionCommand(def);
addDef.execute();

 

Last line throws me with the following error:

ERROR: com.rsa.command.exception.InvalidArgumentException: Required data is missing from command

 

What data is missing from the command?

 

Thanks in advance for any help,

Ran

Labels (1)
0 Likes
3 Replies
TedBarbour
Employee
Employee

Hi Ran - I didn't have time to try this out but the AMAttributeDefinitionDTO requires more than just a name based on the Javadoc. 

See methods setAttrType, setAttrNumber, setDefaultValue, setMultiValued, setSecurityDomainGuid, and setCategory.

 

Ted

Hi Ted,

Thanks for replying.

After dealing with the code a little bit more, I figured out that adding a new token attribute definition is unnecessary to me.

BR,

Ran

EdwardDavis
Employee
Employee

InvalidArgumentException - if the DTO supplied has invalid values or is null