| 1 |
package org.globus.gsi.provider.simple; |
| 2 |
|
| 3 |
import java.security.PrivilegedAction; |
| 4 |
|
| 5 |
import java.security.AccessController; |
| 6 |
|
| 7 |
import java.security.Provider; |
| 8 |
|
| 9 |
/** |
| 10 |
* @deprecated |
| 11 |
*/ |
| 12 |
public final class SimpleMemoryProvider extends Provider { |
| 13 |
|
| 14 |
public static final String PROVIDER_NAME = "Simple"; |
| 15 |
public static final String CERTSTORE_TYPE = "SimpleMemoryCertStore"; |
| 16 |
public static final String KEYSTORE_TYPE = "SimpleMemoryKeyStore"; |
| 17 |
private static final long serialVersionUID = -6275241207604782364L; |
| 18 |
|
| 19 |
/** |
| 20 |
* Create Provider and add Components to the java security framework. |
| 21 |
*/ |
| 22 |
public SimpleMemoryProvider() { |
| 23 |
|
| 24 |
super(PROVIDER_NAME, 1.0, "Simple Memory Security Provider"); |
| 25 |
AccessController.doPrivileged(new PrivilegedAction<Object>() { |
| 26 |
public Object run() { |
| 27 |
put("CertStore.SimpleMemoryCertStore", SimpleMemoryCertStore.class.getName()); |
| 28 |
put("KeyStore.SimpleMemoryKeyStore", SimpleMemoryKeyStore.class.getName()); |
| 29 |
return null; |
| 30 |
} |
| 31 |
}); |
| 32 |
|
| 33 |
} |
| 34 |
} |