equal
deleted
inserted
replaced
26 package sun.security.mscapi; |
26 package sun.security.mscapi; |
27 |
27 |
28 import java.security.AccessController; |
28 import java.security.AccessController; |
29 import java.security.PrivilegedAction; |
29 import java.security.PrivilegedAction; |
30 import java.security.Provider; |
30 import java.security.Provider; |
31 import java.security.ProviderException; |
|
32 import java.util.HashMap; |
31 import java.util.HashMap; |
33 import java.util.Map; |
32 import java.util.Map; |
34 |
33 |
35 import sun.security.action.PutAllAction; |
34 import sun.security.action.PutAllAction; |
36 |
35 |
60 super("SunMSCAPI", 1.7d, INFO); |
59 super("SunMSCAPI", 1.7d, INFO); |
61 |
60 |
62 // if there is no security manager installed, put directly into |
61 // if there is no security manager installed, put directly into |
63 // the provider. Otherwise, create a temporary map and use a |
62 // the provider. Otherwise, create a temporary map and use a |
64 // doPrivileged() call at the end to transfer the contents |
63 // doPrivileged() call at the end to transfer the contents |
65 final Map map = (System.getSecurityManager() == null) |
64 final Map<Object, Object> map = |
66 ? (Map)this : new HashMap(); |
65 (System.getSecurityManager() == null) |
|
66 ? this : new HashMap<Object, Object>(); |
67 |
67 |
68 /* |
68 /* |
69 * Secure random |
69 * Secure random |
70 */ |
70 */ |
71 map.put("SecureRandom.Windows-PRNG", "sun.security.mscapi.PRNG"); |
71 map.put("SecureRandom.Windows-PRNG", "sun.security.mscapi.PRNG"); |