DTLSMessage fragment = new ApplicationMessage(message.getBytes());
encryptedMessage = new Record(ContentType.APPLICATION_DATA, session.getWriteEpoch(), session.getSequenceNumber(), fragment, session);
} else {
// try resuming session
handshaker = new ResumingClientHandshaker(peerAddress, message, session);
}
}
DTLSFlight flight = new DTLSFlight();
// the CoAP message can not be encrypted since no session with peer