📄 com.jthomas.pop.apop.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Sep 02 08:05:40 GMT+00:00 1998 -->
<title>
Class com.jthomas.pop.apop
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-com.jthomas.pop.html">This Package</a> <a href="com.jthomas.pop.Convert.html#_top_">Previous</a> <a href="com.jthomas.pop.pop3.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
Class com.jthomas.pop.apop
</h1>
<pre>
java.lang.Object
|
+----<a href="com.jthomas.pop.pop3.html#_top_">com.jthomas.pop.pop3</a>
|
+----com.jthomas.pop.apop
</pre>
<hr>
<dl>
<dt> public class <b>apop</b>
<dt> extends <a href="com.jthomas.pop.pop3.html#_top_">pop3</a>
</dl>
<p>Get the latest version of this and other classes on <a href="http://www.geocities.com/SunsetStrip/Studio/4994/java.html"> Stefano Locati's Java page.</a> <p>Interface to a POP3 Mail server. This class is smart enough to use APOP authorization only if the server sends a timestamp in the initial greeting. (This means it supports APOP login). However, if APOP login fails tries to log on in the normal way. Based on the <a href="http://ds.internic.net/rfc/rfc1939.txt">rfc1939.txt</a> definition for the POP 3 Mail client/server protocol. <b>If mailhost, user, password are not supplied on constructor then they must be specified on the connect and login calls.</b>
<p>
<dl>
<dt> <b>Version:</b>
<dd> $Revision: 1.9 $ $Date: 1998/09/02 08:05:18 $
<dt> <b>Author:</b>
<dd> <b>Original author:</b> John Thomas <a href="mailto:jthomas@cruzio.com">jthomas@cruzio.com</a>, <b>Current maintainer:</b> Stefano Locati <a href="mailto:slocati@geocities.com">slocati@geocities.com</a> or <a href="mailto:stefano.locati@usa.net">stefano.locati@usa.net</a>
<dt> <b>See Also:</b>
<dd> <a href="com.jthomas.pop.pop3.html#_top_">pop3</a>
</dl>
<hr>
<a name="index"></a>
<h2>
<img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
<dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#apop()"><b>apop</b></a>()
<dd> This will just create the object.
<dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#apop(java.lang.String, java.lang.String, java.lang.String)"><b>apop</b></a>(String, String, String)
<dd> This will just create the object.
</dl>
<h2>
<img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#apopSupport()"><b>apopSupport</b></a>()
<dd> Indicates if the Server will support APOP Login.
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#connect()"><b>connect</b></a>()
<dd> APOP override for connect method.<br> - Calls the connect method for pop3 class.<br> - Searches response for additional info.
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#login()"><b>login</b></a>()
<dd> Login the specified user using the APOP interface.
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#login(java.lang.String, java.lang.String)"><b>login</b></a>(String, String)
<dd> Login the specified user using the APOP interface.
</dl>
<a name="constructors"></a>
<h2>
<img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="apop"></a>
<a name="apop(java.lang.String, java.lang.String, java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>apop</b>
<pre>
public apop(String host,
String user,
String password)
</pre>
<dl>
<dd> This will just create the object. No work is done.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> host - POP3 server host name
<dd> user - mailbox user name
<dd> password - mailbox password
</dl></dd>
</dl>
<a name="apop()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>apop</b>
<pre>
public apop()
</pre>
<dl>
<dd> This will just create the object. No work is done. You will have to supply host, user and password through connect() and login() methods.
<p>
</dl>
<a name="methods"></a>
<h2>
<img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="connect()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="connect"><b>connect</b></a>
<pre>
public synchronized <a href="com.jthomas.pop.popStatus.html#_top_">popStatus</a> connect()
</pre>
<dl>
<dd> APOP override for connect method.<br> - Calls the connect method for pop3 class.<br> - Searches response for additional info. It should contain the "nonce" that will be used in calculating the MD5 message digest.
<p>
<dd><dl>
<dt> <b>Returns:</b>
<dd> popStatus: result of this operation
<dt> <b>Overrides:</b>
<dd> <a href="com.jthomas.pop.pop3.html#connect()">connect</a> in class <a href="com.jthomas.pop.pop3.html#_top_">pop3</a>
</dl></dd>
</dl>
<a name="login(java.lang.String, java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="login"><b>login</b></a>
<pre>
public <a href="com.jthomas.pop.popStatus.html#_top_">popStatus</a> login(String user,
String password)
</pre>
<dl>
<dd> Login the specified user using the APOP interface.
<p>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> user - mailbox user name
<dd> password - mailbox password
<dt> <b>Returns:</b>
<dd> popStatus: result of this operation
<dt> <b>Overrides:</b>
<dd> <a href="com.jthomas.pop.pop3.html#login(java.lang.String, java.lang.String)">login</a> in class <a href="com.jthomas.pop.pop3.html#_top_">pop3</a>
</dl></dd>
</dl>
<a name="login()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="login"><b>login</b></a>
<pre>
public synchronized <a href="com.jthomas.pop.popStatus.html#_top_">popStatus</a> login()
</pre>
<dl>
<dd> Login the specified user using the APOP interface. Username and password must have been provided in the constructor.
<p>
<dd><dl>
<dt> <b>Returns:</b>
<dd> popStatus: result of this operation
<dt> <b>Overrides:</b>
<dd> <a href="com.jthomas.pop.pop3.html#login()">login</a> in class <a href="com.jthomas.pop.pop3.html#_top_">pop3</a>
</dl></dd>
</dl>
<a name="apopSupport()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="apopSupport"><b>apopSupport</b></a>
<pre>
public boolean apopSupport()
</pre>
<dl>
<dd> Indicates if the Server will support APOP Login. We must have found a timestamp in the Connect banner. Generally this method is not needed, since this class is smart enough to decide between APOP and normal login.
<p>
<dd><dl>
<dt> <b>Returns:</b>
<dd> true if the server supports APOP login, false otherwise.
</dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-com.jthomas.pop.html">This Package</a> <a href="com.jthomas.pop.Convert.html#_top_">Previous</a> <a href="com.jthomas.pop.pop3.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -