commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <adammurd...@apache.org>
Subject RE: [VFS][PATCH] use root of zip as directory
Date Tue, 22 Oct 2002 13:17:30 GMT


> -----Original Message-----
> From: David BERNARD [mailto:dwayne@freesurf.fr]
> Sent: Sunday, 20 October 2002 8:19 PM
> To: Jakarta Commons Developers List
> Subject: RE: [VFS][PATCH] use root of zip as directory

> > +1.  Any thoughts on how the provider might get hold of the user's
> > authentication info (usernames, passwords, certs, etc)?
> Encoding this stuff
> > in the url is ok as a convenience, but isn't a very good
> general solution.
> > I guess we need some kind of authentication provider that can
> be handed to
> > the ssh provider; Something that the ftp, smb, dav, whatever
> providers can
> > also make use of.
>
> I think about a call back Interface, call by provider to required any
> information (String). The user application provide implementation for
> this Interface (automatic answer, swing dialog box,...).
> like :
>
> public interface Replier {
>
>   public void needProperties(Property[] properties) throws Exception;
> }
>
> public class Property {
>   public String name;
>   public String value;
>   public String defaultValue;
> }
>
> name and defaultValue are set by FSProvider before call needProperties.
> value are set by Replier implementation.
>
> Your opinion ?

That looks fine.  We'll need to come up with a naming scheme for common
properties like the username for a particular protocol+hostname(+port), and
a password for a particular username+protocol+hostname.  I guess another
option could be to subclass Property with classes that provide this info to
the Replier.


Adam


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message