directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@apache.org>
Subject Re: how to store user certificates in apacheds ldap using jndi
Date Thu, 20 Aug 2009 07:46:45 GMT
Stefan Seelmann wrote:
> 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.
>   
Yeah, you are probably right Kiran.
> Kind Regards,
> Stefan
>
>
>   


-- 
--
cordialement, regards,
Emmanuel L├ęcharny
www.iktek.com
directory.apache.org



Mime
View raw message