|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.user.authentication.MCRMailAuthenticator
public class MCRMailAuthenticator
Authenticates a user by checking the password against a POP3 or IMAP mail server. Configuration properties are: MCR.UserAuthenticator.[ID].Host the host name of the mail server MCR.UserAuthenticator.[ID].Protocol the mail protocol, "imap" or "pop3", default is "imap"
| Constructor Summary | |
|---|---|
MCRMailAuthenticator()
|
|
| Method Summary | |
|---|---|
boolean |
authenticate(String username,
String password)
Authenticates a user by checking a given password for that user. |
void |
init(String ID)
Initializes this instance. |
static void |
main(String[] args)
A small test application, modify source code to test class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRMailAuthenticator()
| Method Detail |
|---|
public void init(String ID)
MCRAuthenticator
init in interface MCRAuthenticatorID - the unique ID of this MCRAuthenticator instance
public boolean authenticate(String username,
String password)
MCRAuthenticator
authenticate in interface MCRAuthenticatorusername - the usernamepassword - the password
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||