com.dalsemi.tininet.ppp
Class Pap

java.lang.Object
  |
  +--com.dalsemi.tininet.ppp.Protocol
        |
        +--com.dalsemi.tininet.ppp.Pap

public class Pap
extends Protocol
implements TimerEventListener

The Password Authentication Protocol (PAP). PAP provides a simple method of authentication.


Field Summary
protected static int PAP_PROTOCOL_NUMBER
           
 
Fields inherited from class com.dalsemi.tininet.ppp.Protocol
ACK_RCVD, ACK_SENT, CLOSED, CLOSING, CODE_POS, ID_POS, INITIAL, interfaceNumber, LENGTH_LSB_POS, LENGTH_MSB_POS, opened, OPENED, OPTION_START_POS, PACKET_OVERHEAD, packetID, PASSWORD_FILE, PROTOCOL_LSB_POS, PROTOCOL_MSB_POS, protocolNum, queue, REQ_SENT, STARTING, state, STOPPED, STOPPING, timeoutCount, timeoutCounter, timeoutInterval, timer
 
Constructor Summary
Pap()
           
 
Method Summary
 void close()
           
 void down()
           
 java.lang.String getPassword()
           
 java.lang.String getUsername()
           
 void newPacket(byte[] packet)
          Invoked when this protocol has a new packet.
 void open()
           
 void setPassword(java.lang.String secret)
           
 void setUsername(java.lang.String username)
           
 void timeout()
          Timer event listener interface
 void up(int type)
           
 
Methods inherited from class com.dalsemi.tininet.ppp.Protocol
findPassword, formatMsg, formatMsg, formatMsg, queueAdd, queueAdd, queueAdd, sendPacket, startTimer, stopTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAP_PROTOCOL_NUMBER

protected static final int PAP_PROTOCOL_NUMBER
Constructor Detail

Pap

public Pap()
Method Detail

newPacket

public void newPacket(byte[] packet)
Description copied from class: Protocol
Invoked when this protocol has a new packet.
Overrides:
newPacket in class Protocol

open

public void open()

up

public void up(int type)

down

public void down()

close

public void close()

timeout

public void timeout()
Description copied from interface: TimerEventListener
Timer event listener interface
Specified by:
timeout in interface TimerEventListener

setUsername

public void setUsername(java.lang.String username)

setPassword

public void setPassword(java.lang.String secret)

getUsername

public java.lang.String getUsername()

getPassword

public java.lang.String getPassword()


Also see:
o TINI 1.16 API
o TINI Home Page
o 1-Wire API

o JDK 1.1

Last update Wed Jun 8 17:19:36 CDT 2005