Class socket.Authenticator
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class socket.Authenticator

java.lang.Object
   |
   +----socket.Authenticator

public class Authenticator
extends Object

Variable Index

 o debug
Sets debugging level for authentication code.
 o enabled
 o way

Constructor Index

 o Authenticator(int)

Method Index

 o data(int, byte[])
 o dispatch(byte[], int)
 o getAuthenticator(int, int)
Given a type (e.g.
 o getType()
 o is(int, byte[])
 o printsub(int, byte[])
 o reply(int, byte[])
 o send()
 o sendname(String)
 o sendNext()
 o setOutputStream(OutputStream)
Set the OutputStream used to send option replies.

Variables

 o enabled
  public final static boolean enabled
 o debug
  protected static int debug
Sets debugging level for authentication code.
 o way
  protected byte way

Constructors

 o Authenticator
  public Authenticator(int mode)

Methods

 o setOutputStream
  public static void setOutputStream(OutputStream out)
Set the OutputStream used to send option replies.
 o getAuthenticator
  public static Authenticator getAuthenticator(int type,
                                               int way)
Given a type (e.g. SRP) and a way (e.g. CLIENT|ONE_WAY), find the matching authenticator from the list of supported ones. Returns null if the specified authenticator is not supported.
 o sendname
  protected static void sendname(String name) throws IOException
 o sendNext
  public static void sendNext() throws IOException
 o dispatch
  public static void dispatch(byte buf[],
                              int count) throws IOException
 o data
  protected void data(int type,
                      byte buf[]) throws IOException
 o getType
  public abstract byte getType()
 o send
  public abstract boolean send() throws IOException
 o is
  public abstract void is(int type,
                          byte buf[]) throws IOException
 o reply
  public abstract void reply(int type,
                             byte buf[]) throws IOException
 o printsub
  public abstract String printsub(int type,
                                  byte buf[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index