MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / processMsg

Method processMsg

java/com/tigervnc/rfb/CSecurityIdent.java:28–45  ·  view source on GitHub ↗
(CConnection cc)

Source from the content-addressed store, hash-verified

26 public CSecurityIdent() { }
27
28 public boolean processMsg(CConnection cc) {
29 OutStream os = cc.getOutStream();
30
31 StringBuffer username = new StringBuffer();
32
33 upg.getUserPasswd(cc.isSecure(), username, null);
34
35 // Return the response to the server
36 os.writeU32(username.length());
37 try {
38 byte[] utf8str = username.toString().getBytes("UTF8");
39 os.writeBytes(utf8str, 0, username.length());
40 } catch(java.io.UnsupportedEncodingException e) {
41 e.printStackTrace();
42 }
43 os.flush();
44 return true;
45 }
46
47 public int getType() { return Security.secTypeIdent; }
48

Callers

nothing calls this directly

Calls 9

writeU32Method · 0.95
writeBytesMethod · 0.95
flushMethod · 0.95
getBytesMethod · 0.80
getUserPasswdMethod · 0.65
getOutStreamMethod · 0.45
isSecureMethod · 0.45
lengthMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected