mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
08.41.2013 83ff075c9f5a4e1a013e4a129404e933c5b6fc64
OPENDJ-830 (CR-1505) Implement authentication and authorization for HTTP connection handler

Converters.java:
Used the straightforward AttributeBuilder.add(ByteString).
1 files modified
5 ■■■■ changed files
opendj3/opendj-server2x-adapter/src/main/java/org/forgerock/opendj/adapter/server2x/Converters.java 5 ●●●● patch | view | raw | blame | history
opendj3/opendj-server2x-adapter/src/main/java/org/forgerock/opendj/adapter/server2x/Converters.java
@@ -55,9 +55,7 @@
import org.opends.server.protocols.ldap.LDAPFilter;
import org.opends.server.protocols.ldap.LDAPModification;
import org.opends.server.types.AttributeBuilder;
import org.opends.server.types.AttributeType;
import org.opends.server.types.AttributeValue;
import org.opends.server.types.AttributeValues;
import org.opends.server.types.ByteStringBuilder;
import org.opends.server.types.DereferencePolicy;
import org.opends.server.types.LDAPException;
@@ -335,9 +333,8 @@
            final org.forgerock.opendj.ldap.Attribute attribute) {
        final AttributeBuilder attrBuilder =
            new AttributeBuilder(attribute.getAttributeDescriptionAsString());
        final AttributeType attrType = attrBuilder.getAttributeType();
        for (ByteString b : attribute.toArray()) {
            attrBuilder.add(AttributeValues.create(attrType, to(b)));
            attrBuilder.add(to(b));
        }
        return attrBuilder.toAttribute();
    }