Class ExtendedPOP3Client

    • Constructor Detail

      • ExtendedPOP3Client

        public ExtendedPOP3Client()
                           throws java.security.NoSuchAlgorithmException
        The default ExtendedPOP3Client constructor. Creates a new Extended POP3 Client.
        Throws:
        java.security.NoSuchAlgorithmException - Never thrown here.
    • Method Detail

      • auth

        public boolean auth​(ExtendedPOP3Client.AUTH_METHOD method,
                            java.lang.String user,
                            java.lang.String password)
                     throws java.io.IOException,
                            java.security.NoSuchAlgorithmException,
                            java.security.InvalidKeyException
        Authenticate to the POP3 server by sending the AUTH command with the selected mechanism, using the given user and the given password.
        Parameters:
        method - the ExtendedPOP3Client.AUTH_METHOD to use
        user - the user name
        password - the password
        Returns:
        True if successfully completed, false if not.
        Throws:
        java.io.IOException - If an I/O error occurs while either sending a command to the server or receiving a reply from the server.
        java.security.NoSuchAlgorithmException - If the CRAM hash algorithm cannot be instantiated by the Java runtime system.
        java.security.InvalidKeyException - If the CRAM hash algorithm failed to use the given password.