< prev index next >
src/java.base/macosx/classes/apple/security/KeychainStore.java
Print this page
rev 55686 : 8227587: Add internal privileged System.loadLibrary
Reviewed-by: rriggs, mchung
*** 103,119 ****
private static final int SALT_LEN = 20;
private static final Debug debug = Debug.getInstance("keystore");
static {
! AccessController.doPrivileged(
! new PrivilegedAction<Void>() {
! public Void run() {
! System.loadLibrary("osxsecurity");
! return null;
! }
! });
try {
PKCS8ShroudedKeyBag_OID = new ObjectIdentifier(keyBag);
pbeWithSHAAnd3KeyTripleDESCBC_OID = new ObjectIdentifier(pbeWithSHAAnd3KeyTripleDESCBC);
} catch (IOException ioe) {
// should not happen
--- 103,113 ----
private static final int SALT_LEN = 20;
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
< prev index next >