sigProtect = ((AsymmetricBinding)binding).isEncryptSignature();
} else if (binding instanceof SymmetricBinding) {
tokenProtect = ((SymmetricBinding)binding).isProtectTokens();
sigProtect = ((SymmetricBinding)binding).isEncryptSignature();
}
<BUG>endSuppTokMap.putAll(endEncSuppTokMap);

doEndorsedSignatures(endSuppTokMap, tokenProtect, sigProtect);

sgndEndSuppTokMap.putAll(sgndEndEncSuppTokMap);

doEndorsedSignatures(sgndEndSuppTokMap, tokenProtect, sigProtect);
</BUG>
}

sigProtect = ((AsymmetricBinding)binding).isEncryptSignature();
} else if (binding instanceof SymmetricBinding) {
tokenProtect = ((SymmetricBinding)binding).isProtectTokens();
sigProtect = ((SymmetricBinding)binding).isEncryptSignature();
}
endSuppTokList.addAll(endEncSuppTokList);
doEndorsedSignatures(endSuppTokList, tokenProtect, sigProtect);
sgndEndSuppTokList.addAll(sgndEndEncSuppTokList);
doEndorsedSignatures(sgndEndSuppTokList, tokenProtect, sigProtect);
}
