(CConnection cc)
| 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 |
nothing calls this directly
no test coverage detected