< prev index next >

src/java.base/macosx/classes/apple/security/KeychainStore.java

Print this page




  89     private Hashtable<String, Object> entries = new Hashtable<>();
  90 
  91     /**
  92      * Algorithm identifiers and corresponding OIDs for the contents of the
  93      * PKCS12 bag we get from the Keychain.
  94      */
  95     private static ObjectIdentifier PKCS8ShroudedKeyBag_OID =
  96             ObjectIdentifier.of("1.2.840.113549.1.12.10.1.2");
  97     private static ObjectIdentifier pbeWithSHAAnd3KeyTripleDESCBC_OID =
  98             ObjectIdentifier.of("1.2.840.113549.1.12.1.3");
  99 
 100     /**
 101      * Constnats used in PBE decryption.
 102      */
 103     private static final int iterationCount = 1024;
 104     private static final int SALT_LEN = 20;
 105 
 106     private static final Debug debug = Debug.getInstance("keystore");
 107 
 108     static {
 109         jdk.internal.loader.BootLoader.loadLibrary("osxsecurity");
 110     }
 111 
 112     private static void permissionCheck() {
 113         SecurityManager sec = System.getSecurityManager();
 114 
 115         if (sec != null) {
 116             sec.checkPermission(new RuntimePermission("useKeychainStore"));
 117         }
 118     }
 119 
 120 
 121     /**
 122      * Verify the Apple provider in the constructor.
 123      *
 124      * @exception SecurityException if fails to verify
 125      * its own integrity
 126      */
 127     public KeychainStore() { }
 128 
 129     /**




  89     private Hashtable<String, Object> entries = new Hashtable<>();
  90 
  91     /**
  92      * Algorithm identifiers and corresponding OIDs for the contents of the
  93      * PKCS12 bag we get from the Keychain.
  94      */
  95     private static ObjectIdentifier PKCS8ShroudedKeyBag_OID =
  96             ObjectIdentifier.of("1.2.840.113549.1.12.10.1.2");
  97     private static ObjectIdentifier pbeWithSHAAnd3KeyTripleDESCBC_OID =
  98             ObjectIdentifier.of("1.2.840.113549.1.12.1.3");
  99 
 100     /**
 101      * Constnats used in PBE decryption.
 102      */
 103     private static final int iterationCount = 1024;
 104     private static final int SALT_LEN = 20;
 105 
 106     private static final Debug debug = Debug.getInstance("keystore");
 107 
 108     static {
 109         sun.security.action.LoadLibraryAction.privilegedLoadLibrary("osxsecurity");
 110     }
 111 
 112     private static void permissionCheck() {
 113         SecurityManager sec = System.getSecurityManager();
 114 
 115         if (sec != null) {
 116             sec.checkPermission(new RuntimePermission("useKeychainStore"));
 117         }
 118     }
 119 
 120 
 121     /**
 122      * Verify the Apple provider in the constructor.
 123      *
 124      * @exception SecurityException if fails to verify
 125      * its own integrity
 126      */
 127     public KeychainStore() { }
 128 
 129     /**


< prev index next >