mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8239264: Clearup the legacy ObjectIdentifier constructor from int array
Reviewed-by: jnimeh
This commit is contained in:
parent
8aff5bda80
commit
4e430ffbb6
26 changed files with 412 additions and 692 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -89,12 +89,13 @@ public final class KeychainStore extends KeyStoreSpi {
|
|||
private Hashtable<String, Object> entries = new Hashtable<>();
|
||||
|
||||
/**
|
||||
* Algorithm identifiers and corresponding OIDs for the contents of the PKCS12 bag we get from the Keychain.
|
||||
* Algorithm identifiers and corresponding OIDs for the contents of the
|
||||
* PKCS12 bag we get from the Keychain.
|
||||
*/
|
||||
private static final int keyBag[] = {1, 2, 840, 113549, 1, 12, 10, 1, 2};
|
||||
private static final int pbeWithSHAAnd3KeyTripleDESCBC[] = {1, 2, 840, 113549, 1, 12, 1, 3};
|
||||
private static ObjectIdentifier PKCS8ShroudedKeyBag_OID;
|
||||
private static ObjectIdentifier pbeWithSHAAnd3KeyTripleDESCBC_OID;
|
||||
private static ObjectIdentifier PKCS8ShroudedKeyBag_OID =
|
||||
ObjectIdentifier.of("1.2.840.113549.1.12.10.1.2");
|
||||
private static ObjectIdentifier pbeWithSHAAnd3KeyTripleDESCBC_OID =
|
||||
ObjectIdentifier.of("1.2.840.113549.1.12.1.3");
|
||||
|
||||
/**
|
||||
* Constnats used in PBE decryption.
|
||||
|
@ -104,16 +105,6 @@ public final class KeychainStore extends KeyStoreSpi {
|
|||
|
||||
private static final Debug debug = Debug.getInstance("keystore");
|
||||
|
||||
static {
|
||||
jdk.internal.loader.BootLoader.loadLibrary("osxsecurity");
|
||||
try {
|
||||
PKCS8ShroudedKeyBag_OID = new ObjectIdentifier(keyBag);
|
||||
pbeWithSHAAnd3KeyTripleDESCBC_OID = new ObjectIdentifier(pbeWithSHAAnd3KeyTripleDESCBC);
|
||||
} catch (IOException ioe) {
|
||||
// should not happen
|
||||
}
|
||||
}
|
||||
|
||||
private static void permissionCheck() {
|
||||
SecurityManager sec = System.getSecurityManager();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue