Package net.messagevortex.transport
Class AuthenticationProxy
java.lang.Object
net.messagevortex.transport.AuthenticationProxy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCredentials(Credentials creds) voidgetCredentials(String authzid) Get the ImapConnection object which belongs to this proxy.booleanProcess a login request.Sets the ImapConnection object which belongs to this proxy.
-
Constructor Details
-
AuthenticationProxy
public AuthenticationProxy()
-
-
Method Details
-
setImapConnection
Sets the ImapConnection object which belongs to this proxy.
- Parameters:
conn- the connection to be set- Returns:
- the previously set connection
-
getImapConnection
Get the ImapConnection object which belongs to this proxy.
- Returns:
- A Connection object which is connected to this proxy
-
addUser
-
addCredentials
-
login
Process a login request.
- Parameters:
username- the username to be checkedpassword- the password to be checked- Returns:
- true if th user is known and the password matches this account
-
getCredentials
-