import java.security.AccessController;
import java.security.PrivilegedAction;
public final class ECCProvider extends java.security.Provider {
private static final String INFO = "rntsoft's provider";
public ECCProvider() {
super("rntsoft", 1.0, INFO);
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
put("KeyFactory.ECC", "com.rntsoftKeyFactory");
put("KeyPairGenerator.ECC", "com.rntsoftKeyPairGenerator");
return null;
}
});
}
}