Class FMG.BOL.Auth.AuthPinger
All Packages Class Hierarchy This Package Previous Next Index
Class FMG.BOL.Auth.AuthPinger
java.lang.Object
|
+----java.lang.Thread
|
+----FMG.BOL.Auth.AuthPinger
- public class AuthPinger
- extends Thread
This class can be used to maintain authentication with a BOL
authentication server after the Authenticator object is used to obtain
a proper authentication cookie.
Authenitcation example:
AuthPinger p = new AuthPinger("auth1.ucla.edu", authenticator.cookie());
p.start();
Before de-authenticating with the authentication server, the stop() method
should be used on the AuthPinger.
- See Also:
- Authenticator
-
AuthPinger(String, String)
- Create an AuthPinger object tied to a specific server and authentication
coookie.
-
run()
-
-
setDebug(boolean)
- Set the debugging mode on or off.
AuthPinger
public AuthPinger(String server,
String cookie) throws UnknownHostException, SocketException
- Create an AuthPinger object tied to a specific server and authentication
coookie.
- Parameters:
- server - The server to connect to.
- cookie - The cookie reteruned by the Authenticator.
- Throws: UnknownHostException
- Occurs if the server hostname is not known
- Throws: SocketException
- Occurs if an error occurs on the socket
setDebug
public void setDebug(boolean ToF)
- Set the debugging mode on or off.
- Parameters:
- ToF - A boolean indicating the debugging mode.
run
public void run()
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index