AXL Software™

com.theorem.tacacs.examples.client
Class ExampleUtil

Object
  extended byExampleUtil

public class ExampleUtil
extends Object

Methods common to the examples.


Constructor Summary
ExampleUtil()
           
 
Method Summary
 TACACSSession createSession(TACACSClient tc)
          Create a new session with a standard set up.
 String getName()
          Get the entity's name.
 String getPassword()
          Get the password.
 InetAddress getServerAddress()
          Get the server address.
 String getServerSecret()
          Get the shared secret.
 void readProperties(String propFile)
          Read properties from the file.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleUtil

public ExampleUtil()
Method Detail

readProperties

public void readProperties(String propFile)
                    throws Exception
Read properties from the file.

Parameters:
propFile - Properties file path.
Throws:
Exception

createSession

public TACACSSession createSession(TACACSClient tc)
Create a new session with a standard set up.

Returns:
A new session.

getServerAddress

public InetAddress getServerAddress()
Get the server address.

Returns:
The server's address.

getServerSecret

public String getServerSecret()
Get the shared secret.

Returns:
The shared secret.

getPassword

public String getPassword()
Get the password.

Returns:
Password

getName

public String getName()
Get the entity's name.

Returns:
the name.

AXL Software™

Submit a bug report or feature request

Copyright 1998-2002 AXL Software™ PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.