提交 28e6cba4 编写于 作者: I igerasim

8049250: Need a flag to invert the Card.disconnect(reset) argument

Reviewed-by: valeriep
上级 9cfa175b
......@@ -237,7 +237,16 @@ final class CardImpl extends Card {
}
}
private static final boolean invertReset =
Boolean.parseBoolean(
java.security.AccessController.doPrivileged(
new sun.security.action.GetPropertyAction(
"sun.security.smartcardio.invertCardReset", "false")));
public void disconnect(boolean reset) throws CardException {
if (invertReset) {
reset = !reset;
}
if (reset) {
checkSecurity("reset");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册