// if(session.transport.digest == null &&
// (session.transport.server.securityMode & 0x0f)!=0){
if(session.transport.digest == null &&
(session.transport.server.signaturesRequired ||
(session.transport.server.signaturesEnabled && SmbConstants.SIGNPREF))){
Key key = context.searchSessionKey(subject);
if(key == null){
throw new SmbException("Not found the session key.");
}
request.digest = new SigningDigest(key.getEncoded());
}
session.transport.send( request, response );
session.transport.digest = request.digest;