Package org.cristian.t4j
Class TelnetDefaultAuthenticator
- java.lang.Object
-
- org.cristian.t4j.TelnetServer.Authenticator
-
- org.cristian.t4j.TelnetDefaultAuthenticator
-
public class TelnetDefaultAuthenticator extends TelnetServer.Authenticator
Default anonymous authenticator.
-
-
Field Summary
-
Fields inherited from class org.cristian.t4j.TelnetServer.Authenticator
LOG, STDIN, STDOUT
-
-
Constructor Summary
Constructors Constructor Description TelnetDefaultAuthenticator(java.io.BufferedReader STDIN, java.io.PrintWriter STDOUT)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle()
Executes the authenticator proccess.TelnetServer.Authenticator
newAuthenticator(java.io.BufferedReader STDIN, java.io.PrintWriter STDOUT)
Make a new authenticator instance.-
Methods inherited from class org.cristian.t4j.TelnetServer.Authenticator
isAuthenticated, isAuthenticated, user, user
-
-
-
-
Method Detail
-
newAuthenticator
public TelnetServer.Authenticator newAuthenticator(java.io.BufferedReader STDIN, java.io.PrintWriter STDOUT)
Description copied from class:TelnetServer.Authenticator
Make a new authenticator instance.- Specified by:
newAuthenticator
in classTelnetServer.Authenticator
- Parameters:
STDIN
- The standard input stream.STDOUT
- The standard output stream.- Returns:
- A new Authenticator instance.
-
handle
public void handle()
Description copied from class:TelnetServer.Authenticator
Executes the authenticator proccess.- Specified by:
handle
in classTelnetServer.Authenticator
-
-