Class AuthenticationProxy

java.lang.Object
net.messagevortex.transport.AuthenticationProxy

public class AuthenticationProxy extends Object
  • Constructor Details

    • AuthenticationProxy

      public AuthenticationProxy()
  • Method Details

    • setImapConnection

      public ImapConnection setImapConnection(ImapConnection conn)

      Sets the ImapConnection object which belongs to this proxy.

      Parameters:
      conn - the connection to be set
      Returns:
      the previously set connection
    • getImapConnection

      public ImapConnection getImapConnection()

      Get the ImapConnection object which belongs to this proxy.

      Returns:
      A Connection object which is connected to this proxy
    • addUser

      public void addUser(String username, String password)
    • addCredentials

      public void addCredentials(Credentials creds)
    • login

      public boolean login(String username, String password)

      Process a login request.

      Parameters:
      username - the username to be checked
      password - the password to be checked
      Returns:
      true if th user is known and the password matches this account
    • getCredentials

      public Credentials getCredentials(String authzid)