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

Constructor Index

 o AuthPinger(String, String)
Create an AuthPinger object tied to a specific server and authentication coookie.

Method Index

 o run()
 o setDebug(boolean)
Set the debugging mode on or off.

Constructors

 o 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

Methods

 o setDebug
  public void setDebug(boolean ToF)
Set the debugging mode on or off.
Parameters:
ToF - A boolean indicating the debugging mode.
 o run
  public void run()
Overrides:
run in class Thread

All Packages  Class Hierarchy  This Package  Previous  Next  Index