|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.abstracthorizon.mercury.maildir.security.JavaSecurityAuthenticationProvider
public class JavaSecurityAuthenticationProvider
Authentication provider that uses Java security model. It tried to log in given login context.
Nested Class Summary | |
---|---|
protected static class |
JavaSecurityAuthenticationProvider.Handler
Inner class that handles call backs |
Field Summary | |
---|---|
protected String |
loginContext
Login context name |
Constructor Summary | |
---|---|
JavaSecurityAuthenticationProvider()
Constructor |
Method Summary | |
---|---|
boolean |
authenticate(String host,
int port,
String user,
char[] pass)
Authenticates user by logging to given login context |
void |
init(String loginContext)
Stores login context for further use |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String loginContext
Constructor Detail |
---|
public JavaSecurityAuthenticationProvider()
Method Detail |
---|
public void init(String loginContext)
init
in interface AuthenticationProvider
loginContext
- login context namepublic boolean authenticate(String host, int port, String user, char[] pass)
authenticate
in interface AuthenticationProvider
host
- not usedport
- not useduser
- user name to be used to log in login contextpass
- password to be used to log in login context
true
if logging in login context was successful
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |