gnu.rfb.server
Class DefaultRFBAuthenticator
java.lang.Object
|
+--gnu.rfb.server.DefaultRFBAuthenticator
- All Implemented Interfaces:
- RFBAuthenticator
- public class DefaultRFBAuthenticator
- extends Object
- implements RFBAuthenticator
Free-access RFB authentication models.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
auth
private int auth
password
private String password
restrict
private boolean restrict
restrictedTo
private Set restrictedTo
noPasswordFor
private Set noPasswordFor
DefaultRFBAuthenticator
public DefaultRFBAuthenticator()
DefaultRFBAuthenticator
public DefaultRFBAuthenticator(String password,
String restrictedTo,
String noPasswordFor)
authenticate
public boolean authenticate(RFBClient client)
throws IOException
- Specified by:
authenticate
in interface RFBAuthenticator
IOException
isRestricted
private boolean isRestricted(RFBClient client)
isChallengeRequired
private boolean isChallengeRequired(RFBClient client)
challenge
private boolean challenge(RFBClient client)
throws IOException
IOException
noChallenge
private void noChallenge(RFBClient client)
throws IOException
IOException
addInetAddresses
private static void addInetAddresses(Set set,
String string)