/** * Creates a string that represents this RDN, according to RFC 2253 * * @return An RDN string */ public String toString(){ return toString(false); }
/** * return a string array of the individual RDNs contained in the DN * * @param noTypes If true, returns only the values of the * components, and not the names, e.g. "Babs * Jensen", "Accounting", "Acme", "us" - instead of * "cn=Babs Jensen", "ou=Accounting", "o=Acme", and * "c=us". * @return <code>String[]</code> containing the rdns in the DN with * the leftmost rdn in the first element of the array * */ public String[] explodeDN(boolean noTypes) { int length = rdnList.size(); String[] rdns = new String[length]; for(int i=0; i<length; i++) rdns[i]=((RDN)rdnList.get(i)).toString(noTypes); return rdns; }