Class ExtendedPOP3Client


public class ExtendedPOP3Client extends POP3SClient
A POP3 Cilent class with protocol and authentication extensions support (RFC2449 and RFC2195).
Since:
3.0
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • auth

      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:
      IOException - If an I/O error occurs while either sending a command to the server or receiving a reply from the server.
      NoSuchAlgorithmException - If the CRAM hash algorithm cannot be instantiated by the Java runtime system.
      InvalidKeyException - If the CRAM hash algorithm failed to use the given password.
      InvalidKeySpecException - If the CRAM hash algorithm failed to use the given password.
    • convertToHexString

      private String convertToHexString(byte[] a)
      Converts the given byte array to a String containing the hex values of the bytes. For example, the byte 'A' will be converted to '41', because this is the ASCII code (and the byte value) of the capital letter 'A'.
      Parameters:
      a - The byte array to convert.
      Returns:
      The resulting String of hex codes.