]>
Commit | Line | Data |
---|---|---|
97f85aae | 1 | diff -uNr cryptix-3.2.0-orig/src/xjava/security/IJCE.java cryptix-3.2.0/src/xjava/security/IJCE.java |
2 | --- cryptix-3.2.0-orig/src/xjava/security/IJCE.java 2000-08-17 13:35:24.000000000 +0200 | |
3 | +++ cryptix-3.2.0/src/xjava/security/IJCE.java 2005-05-30 09:49:13.000000000 +0200 | |
4 | @@ -195,9 +195,9 @@ | |
5 | ||
6 | String typedot = type + "."; | |
7 | Vector algorithms = new Vector(); | |
8 | - Enumeration enum = provider.propertyNames(); | |
9 | - while (enum.hasMoreElements()) { | |
10 | - String key = (String) (enum.nextElement()); | |
11 | + Enumeration enum_names = provider.propertyNames(); | |
12 | + while (enum_names.hasMoreElements()) { | |
13 | + String key = (String) (enum_names.nextElement()); | |
14 | if (key.startsWith(typedot)) | |
15 | algorithms.addElement(key.substring(typedot.length())); | |
16 | } | |
17 | @@ -236,18 +236,18 @@ | |
18 | Provider[] providers = getProvidersInternal(); | |
19 | ||
20 | for (int i = 0; i < providers.length; i++) { | |
21 | - Enumeration enum = providers[i].propertyNames(); | |
22 | - while (enum.hasMoreElements()) { | |
23 | - String key = (String) (enum.nextElement()); | |
24 | + Enumeration enum_names = providers[i].propertyNames(); | |
25 | + while (enum_names.hasMoreElements()) { | |
26 | + String key = (String) (enum_names.nextElement()); | |
27 | if (key.startsWith(typedot)) | |
28 | algorithms.put(key.substring(typedot.length()), ""); | |
29 | } | |
30 | } | |
31 | String[] buf = new String[algorithms.size()]; | |
32 | - Enumeration enum = algorithms.keys(); | |
33 | + Enumeration enum_alg = algorithms.keys(); | |
34 | int n = 0; | |
35 | - while (enum.hasMoreElements()) | |
36 | - buf[n++] = (String) (enum.nextElement()); | |
37 | + while (enum_alg.hasMoreElements()) | |
38 | + buf[n++] = (String) (enum_alg.nextElement()); | |
39 | ||
40 | return buf; | |
41 | } |