public class ExtendedPOP3Client extends POP3SClient
POP3Client| Modifier and Type | Class and Description |
|---|---|
static class |
ExtendedPOP3Client.AUTH_METHOD
The enumeration of currently-supported authentication methods.
|
_commandSupport_, AUTHORIZATION_STATE, DEFAULT_PORT, DISCONNECTED_STATE, TRANSACTION_STATE, UPDATE_STATE_defaultPort_, _hostname_, _input_, _output_, _serverSocketFactory_, _socket_, _socketFactory_, _timeout_, connectTimeout, NETASCII_EOL| Constructor and Description |
|---|
ExtendedPOP3Client()
The default ExtendedPOP3Client constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
auth(ExtendedPOP3Client.AUTH_METHOD method,
String username,
String password)
Authenticate to the POP3 server by sending the AUTH command with the
selected mechanism, using the given username and the given password.
|
_connectAction_, execTLS, getEnabledCipherSuites, getEnabledProtocols, getHostnameVerifier, getTrustManager, isEndpointCheckingEnabled, setEnabledCipherSuites, setEnabledProtocols, setEndpointCheckingEnabled, setHostnameVerifier, setKeyManager, setTrustManagercapa, deleteMessage, listMessage, listMessages, listUniqueIdentifier, listUniqueIdentifiers, login, login, logout, noop, reset, retrieveMessage, retrieveMessageTop, statusdisconnect, getAdditionalReply, getCommandSupport, getReplyString, getReplyStrings, getState, removeProtocolCommandistener, sendCommand, sendCommand, sendCommand, sendCommand, setStateaddProtocolCommandListener, connect, connect, connect, connect, connect, connect, createCommandSupport, fireCommandSent, fireReplyReceived, getCharset, getCharsetName, getConnectTimeout, getDefaultPort, getDefaultTimeout, getKeepAlive, getLocalAddress, getLocalPort, getProxy, getReceiveBufferSize, getRemoteAddress, getRemotePort, getSendBufferSize, getServerSocketFactory, getSoLinger, getSoTimeout, getTcpNoDelay, isAvailable, isConnected, removeProtocolCommandListener, setCharset, setConnectTimeout, setDefaultPort, setDefaultTimeout, setKeepAlive, setProxy, setReceiveBufferSize, setSendBufferSize, setServerSocketFactory, setSocketFactory, setSoLinger, setSoTimeout, setTcpNoDelay, verifyRemotepublic ExtendedPOP3Client() throws NoSuchAlgorithmException
NoSuchAlgorithmException - on errorpublic boolean auth(ExtendedPOP3Client.AUTH_METHOD method, String username, String password) throws IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidKeySpecException
method - the ExtendedPOP3Client.AUTH_METHOD to useusername - the user namepassword - the passwordIOException - 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.Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.