ldapAttr.addValue(new ByteArrayValueTranscoder(), LdapUtils.base64Decode(attrValue)); } else if (isUrl) { ldapAttr.addValue(new ByteArrayValueTranscoder(), LdapUtils.readURL(new URL(attrValue))); } else { ldapAttr.addValue(new StringValueTranscoder(), attrValue);
ldapAttr.addValue(new ByteArrayValueTranscoder(), LdapUtils.base64Decode(attrValue)); } else if (isUrl) { ldapAttr.addValue(new ByteArrayValueTranscoder(), LdapUtils.readURL(new URL(attrValue))); } else { ldapAttr.addValue(new StringValueTranscoder(), attrValue);
ldapAttr.addValue(new ByteArrayValueTranscoder(), LdapUtils.base64Decode(attrValue)); } else if (isUrl) { ldapAttr.addValue(new ByteArrayValueTranscoder(), LdapUtils.readURL(new URL(attrValue))); } else { ldapAttr.addValue(new StringValueTranscoder(), attrValue);
/** * Initializes the set of default single value transcoders. * * @return single value transcoders */ protected Set<SingleValueReflectionTranscoder<?>> getDefaultSingleValueTranscoders() { final Set<SingleValueReflectionTranscoder<?>> transcoders = new HashSet<>(); transcoders.add(new SingleValueReflectionTranscoder<>(new ObjectValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new BooleanValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new BooleanValueTranscoder(true))); transcoders.add(new SingleValueReflectionTranscoder<>(new DoubleValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new DoubleValueTranscoder(true))); transcoders.add(new SingleValueReflectionTranscoder<>(new FloatValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new FloatValueTranscoder(true))); transcoders.add(new SingleValueReflectionTranscoder<>(new IntegerValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new IntegerValueTranscoder(true))); transcoders.add(new SingleValueReflectionTranscoder<>(new LongValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new LongValueTranscoder(true))); transcoders.add(new SingleValueReflectionTranscoder<>(new ShortValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new ShortValueTranscoder(true))); transcoders.add(new SingleValueReflectionTranscoder<>(new StringValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new ByteArrayValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new CharArrayValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new CertificateValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new GeneralizedTimeValueTranscoder())); transcoders.add(new SingleValueReflectionTranscoder<>(new UUIDValueTranscoder())); return transcoders; }