public static Object getValue ( Name name , int index ) { Assert . notNull ( name , "name must not be null" ) ; LdapName ldapName = returnOrConstructLdapNameFromName ( name ) ; Rdn rdn = ldapName . getRdn ( index ) ; if ( rdn . size ( ) > 1 ) { LOGGER . warn ( "Rdn at position " + index + " of dn '" + name + "' is multi-value - returned value is not to be trusted. " + "Consider using name-based getValue method instead" ) ; } return rdn . getValue ( ) ; }
Get the value of the Rdn at the requested index in the supplied Name .