mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8267543: Post JEP 411 refactoring: security
Reviewed-by: mullan
This commit is contained in:
parent
476775808f
commit
40d23a0c0b
19 changed files with 80 additions and 79 deletions
|
@ -1012,7 +1012,6 @@ public final class SunPKCS11 extends AuthProvider {
|
|||
// test if a token is present and initialize this provider for it if so.
|
||||
// does nothing if no token is found
|
||||
// called from constructor and by poller
|
||||
@SuppressWarnings("removal")
|
||||
private void initToken(CK_SLOT_INFO slotInfo) throws PKCS11Exception {
|
||||
if (slotInfo == null) {
|
||||
slotInfo = p11.C_GetSlotInfo(slotID);
|
||||
|
@ -1104,7 +1103,8 @@ public final class SunPKCS11 extends AuthProvider {
|
|||
}
|
||||
|
||||
// register algorithms in provider
|
||||
AccessController.doPrivileged(new PrivilegedAction<Object>() {
|
||||
@SuppressWarnings("removal")
|
||||
var dummy = AccessController.doPrivileged(new PrivilegedAction<Object>() {
|
||||
public Object run() {
|
||||
for (Map.Entry<Descriptor,Integer> entry
|
||||
: supportedAlgs.entrySet()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue