I don't like this solution, because there's a period during which the file
is unencrypted on the filesystem.

Instead, how about this:

- subclass or facade NativeFtpFile as EncryptingNativeFtpFile - to perform
the encryption you desire on the fly
- likewise, subclass or facade NativeFilesystemView as
EncryptingFilesystemView - such that it creates EncryptingNativeFtpFiles
instead of NativeFtpFiles
- write a EncryptingNativeFilesystemFactory
- In your Spring config, configure EncryptingNativeFilesystemFactory as the
filesystem



2011/11/1 Toli Kuznets <tkuzn...@marinsoftware.com>

> Hi,
>
> You can use the Ftplet API
> (http://mina.apache.org/ftpserver/ftplet.html) to create your own
> Ftplet, and then kick off the encryption process in the onUploadEnd()
> function.
>
> onUploadEnd() is called when the file finishes uploading, you encrypt
> it immediately, and then only programs with same encryption key will
> have access to that file.
>
> hope this helps.
>
> 2011/11/1 Şerife Nur Uysal (Dağıtım Kanalları Yazılım Geliştirme Ve
> Ar&Ge Uzmanı) <serife.uy...@aktifbank.com.tr>:
> > Hi everybody,
> >
> > I have a problem about file security.I installed the ftp server then
> after clients connect me and upload a file with ftp,can it be encripted ?I
> dont want anybody see the content of file in the server.It should be only
> readable by written programs.
> >  Do you have any idea? Can I  do it with modification ftp jars
> ,configuration files or something else?
> >
> >
> > Bu mesajda (veya ekindeki dosyalarda) bulunan tüm fikir ve görüşler
> sadece adres sahip(ler)ine ait olup, alıcısına özel, 3. kişilere
> açıklanmaması gereken gizli bilgiler içerebilir. Bu elektronik mesajın
> içeriğinin ya da eklerinin yetkisiz veya izinsiz olarak açıklanması,
> kopyalanması, dağıtılması veya buradaki bilgilere atıf yapılması
> yasaklanmıştır. Bu ileti tarafınıza yanlışlıkla ulaştıysa, lütfen iletiyi
> göndereni bilgilendiriniz ve bu iletiyi bilgisayarınızdan siliniz. Aktif
> Bank, bu mesajda iletilen bilgilerin doğruluğu, bütünlüğü veya güncelliği
> konularında bir garanti vermemekte olup bu elektronik posta iletisinde yer
> alan bilgi ve yorumlara dayalı olarak yapılan eylemler veya alınan kararlar
> sonucunda ortaya çıkabilecek zararlar ile virüslerin bilgisayar sisteminize
> yol açabileceği zararlardan dolayı hiçbir surette sorumlu tutulamaz.
> >
> > Gerçekten ihtiyacınız yoksa lütfen bu mesajın çıktısını almayınız.
> >
> ----------------------------------------------------------------------------------------------------------------------------------------------------
> > This message (including any attachments) contains confidential and/or
> proprietary information intended only for the addressee. Any unauthorized
> disclosure, copying, distributing or reliance on the contents of this
> e-mail and its attachments is strictly prohibited and may constitute a
> violation of law. If this message is received by you in error please inform
> the sender and then delete the message from your computer. Aktif Bank does
> not warrant for the accuracy, integrity or currency of the information and
> can never be held liable for any damages, which are directly or indirectly
> the result of actions or decisions based on the information or comments
> provided in or with this e-mail or any damages in your computer systems
> caused by viruses.
> >
> > Please do not print this message unless you really need a hard copy.
> >
>



-- 
"There is no way to peace; peace is the way"
  • file secu... Dağıtım Kanalları Yazılım Geliştirme Ve Ar&Ge Uzmanı
    • Re: ... Toli Kuznets
      • ... John Hartnup

Reply via email to