comparison src/main/java/com/glavsoft/rfb/protocol/state/AuthenticationState.java @ 52:472a9bcacb21 draft default tip

TightVNC 2.7.1.0
author you@cr.ie.u-ryukyu.ac.jp
date Wed, 07 Aug 2013 19:01:17 +0900
parents 4689cc86d6cb
children
comparison
equal deleted inserted replaced
0:4689cc86d6cb 52:472a9bcacb21
1 // Copyright (C) 2010, 2011 GlavSoft LLC. 1 // Copyright (C) 2010, 2011, 2012, 2013 GlavSoft LLC.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 //------------------------------------------------------------------------- 4 //-------------------------------------------------------------------------
5 // This file is part of the TightVNC software. Please visit our Web site: 5 // This file is part of the TightVNC software. Please visit our Web site:
6 // 6 //
22 //------------------------------------------------------------------------- 22 //-------------------------------------------------------------------------
23 // 23 //
24 24
25 package com.glavsoft.rfb.protocol.state; 25 package com.glavsoft.rfb.protocol.state;
26 26
27 import com.glavsoft.exceptions.AuthenticationFailedException; 27 import com.glavsoft.exceptions.*;
28 import com.glavsoft.exceptions.ClosedConnectionException;
29 import com.glavsoft.exceptions.FatalException;
30 import com.glavsoft.exceptions.TransportException;
31 import com.glavsoft.exceptions.UnsupportedProtocolVersionException;
32 import com.glavsoft.exceptions.UnsupportedSecurityTypeException;
33 import com.glavsoft.rfb.protocol.ProtocolContext; 28 import com.glavsoft.rfb.protocol.ProtocolContext;
34 import com.glavsoft.rfb.protocol.auth.AuthHandler; 29 import com.glavsoft.rfb.protocol.auth.AuthHandler;
35 30
36 public class AuthenticationState extends ProtocolState { 31 public class AuthenticationState extends ProtocolState {
37 32
60 // skip when protocol < 3.8 and NONE_AUTH 55 // skip when protocol < 3.8 and NONE_AUTH
61 if (authHandler.useSecurityResult()) { 56 if (authHandler.useSecurityResult()) {
62 checkSecurityResult(); 57 checkSecurityResult();
63 } 58 }
64 changeStateTo(isTight ? new InitTightState(context) : new InitState(context)); 59 changeStateTo(isTight ? new InitTightState(context) : new InitState(context));
65 context.getSettings().setTight(isTight); 60 context.setTight(isTight);
66 } 61 }
67 62
68 /** 63 /**
69 * Check Security Result received from server 64 * Check Security Result received from server
70 * May be: 65 * May be: