org.abstracthorizon.mercury.maildir.security
Interface AuthenticationProvider

All Known Implementing Classes:
GenericAuthenticationProvider, JavaSecurityAuthenticationProvider

public interface AuthenticationProvider

Interface describing authentication provider.

Author:
Daniel Sendula

Method Summary
 boolean authenticate(String host, int port, String user, char[] pass)
          Tries to authenticate given user.
 void init(String loginContext)
          Initialises provider with given login context name
 

Method Detail

init

void init(String loginContext)
Initialises provider with given login context name

Parameters:
loginContext - login context name

authenticate

boolean authenticate(String host,
                     int port,
                     String user,
                     char[] pass)
Tries to authenticate given user.

Parameters:
host - host to be logged to
port - port to be logged to
user - username
pass - password
Returns:
true if authentication succeded.


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.