protected String encodeLdap ( ) { StringBuffer buff = new StringBuffer ( key . length ( ) + value . length ( ) * 2 ) ; buff . append ( key ) ; buff . append ( ' ' ) ; buff . append ( LdapEncoder . nameEncode ( value ) ) ; return buff . toString ( ) ; }
Encode key and value to ldap .