You're right. I'll raise a JIRA and fix those interfaces. Thx for reporting.
On Fri, Oct 30, 2009 at 20:27, Daniel Kahn Gillmor <[email protected]> wrote: > hey folks-- > > i just learned about mina -- looks neat, thanks for offering it! > > i'm interested in the configurable authentication classes, as documented > here: > > http://mina.apache.org/sshd/configuring-security.html > > I note that the PasswordAuthenticator and PublickeyAuthenticator > interfaces are oddly asymmetric: PasswordAuthenticator returns a > non-null identity object if the authentication succeeds, but > PublickeyAuthenticator simply returns a boolean. Why is this? > > Also, should either authenticator do anything with the ServerSession > object passed in? There does not seem to be any comment about that > parameter in the interface file. > > (please excuse me if i have the terminology wrong -- i don't know much > java, and would appreciate any corrections or suggestions about > terminology or ways to think about these things more clearly). > > Regards, > > --dkg > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com
