directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <seelm...@apache.org>
Subject Re: how to store user certificates in apacheds ldap using jndi
Date Thu, 20 Aug 2009 07:44:56 GMT
sahul wrote:
> File usercertFile=new File("C:/Documents and
> Settings/Desktop/Certificates/aaa.cer");
> attributes.put("userCertificate",usercertFile);

You can't add the File object to the attributes, but the content of the
file as byte[]. You could use
  org.apache.commons.io.FileUtils.readFileToByteArray(File)
to read the file.

Kind Regards,
Stefan


Mime
View raw message