- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Tags:
- addamattributedefinitioncommand
- amattributedefinitiondto
- CAS
- Cloud
- Cloud Auth
- Cloud Authentication
- Cloud Authentication Service
- Community Thread
- Discussion
- Forum Thread
- RSA SecurID
- RSA SecurID Access
- SaaS
- SecurID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
InvalidArgumentException
- if the DTO supplied has invalid values or is null
