The Agent Type Attribute Name can be obtained if the Agent Type Attribute OID is known by using the newly added getAgentTypeAttr() function in the Java Policy API.
The sample code for this would be:
SmResponseAttr responseAttr = (SmResponseAttr) responseAttrs.get(i); String agentTypeAttrOid = responseAttr.getAgentTypeAttr(); System.out.println( "Agent Type Attribute OID = " + agentTypeAttrOid); SmAgentTypeAttr agentattr = new SmAgentTypeAttr(); result = policyApi.getAgentTypeAttr(agentTypeAttrOid.getOidString(), agentattr); System.out.println( "Agent Type Attribute Name = " + agentattr.getName());
| Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |