net.spy.jwebkit.auth
Interface PasswordCheckingAuthAdaptor

All Superinterfaces:
AuthAdaptor
All Known Implementing Classes:
PropPasswdAuthAdaptor, SimpleAuthAdaptor

public interface PasswordCheckingAuthAdaptor
extends AuthAdaptor

AuthAdaptor subinterface for authenticators that can perform simple password authentication validation (i.e. basic and form).


Method Summary
 java.security.Principal checkPassword(java.lang.String user, java.lang.String pass)
          Return a Principal representing the given username if the given password is considered valid for the given user.
 
Methods inherited from interface net.spy.jwebkit.auth.AuthAdaptor
didAuthenticate, init, isPrincipalInRole
 

Method Detail

checkPassword

java.security.Principal checkPassword(java.lang.String user,
                                      java.lang.String pass)
                                      throws javax.servlet.ServletException
Return a Principal representing the given username if the given password is considered valid for the given user.

Parameters:
user - the username
pass - the password
Returns:
the Principal representing the user, or null if the credentials are invalid
Throws:
javax.servlet.ServletException - if something goes wrong


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.