internal string addSecurityKeyByName(string securityKeyName, string duz)
{
if (StringUtils.isEmpty(securityKeyName) || StringUtils.isEmpty(duz))
{
throw new ArgumentNullException("Missing arguments");
}
DdrLister query = buildAddSecurityKeyByNameQuery(securityKeyName, duz);
string[] response = query.execute();
if (response == null || response.Length == 0)
{
throw new ArgumentException("Unable to add security key " + securityKeyName + " for user " + duz);
}
string[] flds = StringUtils.split(response[0], StringUtils.CARET);
if (flds[1] != securityKeyName)
{
throw new DataException("Error adding security key: " + response);
}
return flds[0];
}