VNCj

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.


Field Summary
private  int auth
           
private  Set noPasswordFor
           
private  String password
           
private  boolean restrict
           
private  Set restrictedTo
           
 
Constructor Summary
DefaultRFBAuthenticator()
           
DefaultRFBAuthenticator(String password, String restrictedTo, String noPasswordFor)
           
 
Method Summary
private static void addInetAddresses(Set set, String string)
           
 boolean authenticate(RFBClient client)
           
private  boolean challenge(RFBClient client)
           
private  boolean isChallengeRequired(RFBClient client)
           
private  boolean isRestricted(RFBClient client)
           
private  void noChallenge(RFBClient client)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

auth

private int auth

password

private String password

restrict

private boolean restrict

restrictedTo

private Set restrictedTo

noPasswordFor

private Set noPasswordFor
Constructor Detail

DefaultRFBAuthenticator

public DefaultRFBAuthenticator()

DefaultRFBAuthenticator

public DefaultRFBAuthenticator(String password,
                               String restrictedTo,
                               String noPasswordFor)
Method Detail

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)

VNCj