public void notifyHandshakeComplete() throws IOException { super.notifyHandshakeComplete(); TlsSession newSession = context.getResumableSession(); if (newSession != null) { byte[] newSessionID = newSession.getSessionID(); String hex = Hex.toHexString(newSessionID); if (this.session != null && Arrays.areEqual(this.session.getSessionID(), newSessionID)) { log.trace("Resumed session: " + hex); } else { log.trace("Established session: " + hex); } this.session = newSession; } } }
if (state.tlsSession != null) session_id = state.tlsSession.getSessionID(); if (session_id == null || session_id.length > 32)
if (state.tlsSession != null) session_id = state.tlsSession.getSessionID(); if (session_id == null || session_id.length > 32)
&& Arrays.areEqual(state.selectedSessionID, state.tlsSession.getSessionID());
&& Arrays.areEqual(this.selectedSessionID, this.tlsSession.getSessionID());
.build(); this.tlsSession = new TlsSessionImpl(this.tlsSession.getSessionID(), this.sessionParameters);
&& Arrays.areEqual(this.selectedSessionID, this.tlsSession.getSessionID());
.build(); this.tlsSession = new TlsSessionImpl(this.tlsSession.getSessionID(), this.sessionParameters);
if (this.tlsSession != null) session_id = this.tlsSession.getSessionID(); if (session_id == null || session_id.length > 32)
if (this.tlsSession != null) session_id = this.tlsSession.getSessionID(); if (session_id == null || session_id.length > 32)
&& Arrays.areEqual(state.selectedSessionID, state.tlsSession.getSessionID()); .build(); state.tlsSession = TlsUtils.importSession(state.tlsSession.getSessionID(), state.sessionParameters);
.build(); state.tlsSession = TlsUtils.importSession(state.tlsSession.getSessionID(), state.sessionParameters);