Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.opensst.client.ui.adc
Class CommandLineAuthenticationDataCollector  view CommandLineAuthenticationDataCollector download CommandLineAuthenticationDataCollector.java

java.lang.Object
  extended byorg.opensst.client.ui.adc.CommandLineAuthenticationDataCollector
All Implemented Interfaces:
AuthenticationDataCollector

public class CommandLineAuthenticationDataCollector
extends java.lang.Object
implements AuthenticationDataCollector

This is an authentication data collector. This simple class uses the command line to ask for the data. It can easily be replaced by anything else (Swing, HTML, ...) $Date: 2002/09/27 08:52:38 $

Version:
$Revision: 1.1 $

Field Summary
private  org.opensst.util.log.OpenSSTLogger logger
           
 
Constructor Summary
CommandLineAuthenticationDataCollector()
          Constructor for CommandLineAuthenticationDataCollector.
 
Method Summary
 AuthenticationData collect()
          Let's start the data collection mecanisms.
 void done()
          Give a chance to properly clean up any used resources.
 void init(java.lang.Object initData)
          Give a chance to the UI to initialize itself.
private  java.lang.String readLine(java.lang.String prompt)
          Read a line of data on the default input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private org.opensst.util.log.OpenSSTLogger logger
Constructor Detail

CommandLineAuthenticationDataCollector

public CommandLineAuthenticationDataCollector()
Constructor for CommandLineAuthenticationDataCollector.

Method Detail

init

public void init(java.lang.Object initData)
Description copied from interface: AuthenticationDataCollector
Give a chance to the UI to initialize itself. This method should perform all the initialization steps and left the object in a ready-to-be displayed state

Specified by:
init in interface AuthenticationDataCollector

collect

public AuthenticationData collect()
Description copied from interface: AuthenticationDataCollector
Let's start the data collection mecanisms. This method is synchronous and only return when all the data are collected

Specified by:
collect in interface AuthenticationDataCollector

done

public void done()
Description copied from interface: AuthenticationDataCollector
Give a chance to properly clean up any used resources.

Specified by:
done in interface AuthenticationDataCollector

readLine

private java.lang.String readLine(java.lang.String prompt)
Read a line of data on the default input.