public String getLdapEncoded ( ) { if ( components . size ( ) == 0 ) { throw new IndexOutOfBoundsException ( "No components in Rdn." ) ; } StringBuffer sb = new StringBuffer ( DEFAULT_BUFFER_SIZE ) ; for ( Iterator iter = components . values ( ) . iterator ( ) ; iter . hasNext ( ) ; ) { LdapRdnComponent component = ( LdapRdnComponent ) iter . next ( ) ; sb . append ( component . encodeLdap ( ) ) ; if ( iter . hasNext ( ) ) { sb . append ( "+" ) ; } } return sb . toString ( ) ; }
Get a properly rfc2253 - encoded String representation of this LdapRdn .