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
-
debug
- Sets debugging level for authentication code.
-
enabled
-
-
way
-
-
Authenticator(int)
-
-
data(int, byte[])
-
-
dispatch(byte[], int)
-
-
getAuthenticator(int, int)
- Given a type (e.g.
-
getType()
-
-
is(int, byte[])
-
-
printsub(int, byte[])
-
-
reply(int, byte[])
-
-
send()
-
-
sendname(String)
-
-
sendNext()
-
-
setOutputStream(OutputStream)
- Set the OutputStream used to send option replies.
enabled
public final static boolean enabled
debug
protected static int debug
- Sets debugging level for authentication code.
way
protected byte way
Authenticator
public Authenticator(int mode)
setOutputStream
public static void setOutputStream(OutputStream out)
- Set the OutputStream used to send option replies.
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.
sendname
protected static void sendname(String name) throws IOException
sendNext
public static void sendNext() throws IOException
dispatch
public static void dispatch(byte buf[],
int count) throws IOException
data
protected void data(int type,
byte buf[]) throws IOException
getType
public abstract byte getType()
send
public abstract boolean send() throws IOException
is
public abstract void is(int type,
byte buf[]) throws IOException
reply
public abstract void reply(int type,
byte buf[]) throws IOException
printsub
public abstract String printsub(int type,
byte buf[])
All Packages Class Hierarchy This Package Previous Next Index