/** *@deprecated *This method needs to be removed once the custom principal is fully *supported. We keep it for now for backward compatiblity in API. Note *that this method only returns the name of the principals, not their *class-names. Use with caution! */ public String[] getPrincipalName() { String[] names = new String[principals.size()]; for (int i = 0; i < principals.size(); i++) { names[i] = principals.get(i).getName(); } return names; } }
/** *@deprecated *This method needs to be removed once the custom principal is fully *supported. We keep it for now for backward compatiblity in API. Note *that this method only returns the name of the principals, not their *class-names. Use with caution! */ public String[] getPrincipalName() { String[] names = new String[principals.size()]; for (int i = 0; i < principals.size(); i++) { names[i] = new String(principals.get(i).getName()); } return names; } }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor( Node parent, String nodeName, PrincipalNameDescriptor descriptor) { //principal-name Element principal = (Element) appendTextChild( parent, RuntimeTagNames.PRINCIPAL_NAME, descriptor.getName()); // class-name setAttribute(principal, RuntimeTagNames.CLASS_NAME, descriptor.getClassName()); return principal; } }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor( Node parent, String nodeName, PrincipalNameDescriptor descriptor) { //principal-name Element principal = (Element) appendTextChild( parent, RuntimeTagNames.PRINCIPAL_NAME, descriptor.getName()); // class-name setAttribute(principal, RuntimeTagNames.CLASS_NAME, descriptor.getClassName()); return principal; } }