Merge change 4679 into donut
* changes: Replace the dummy code with Keystore for <keygen> support.
This commit is contained in:
@@ -18,6 +18,7 @@ package android.webkit;
|
|||||||
|
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Message;
|
import android.os.Message;
|
||||||
|
import android.security.Keystore;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
final class JWebCoreJavaBridge extends Handler {
|
final class JWebCoreJavaBridge extends Handler {
|
||||||
@@ -187,18 +188,11 @@ final class JWebCoreJavaBridge extends Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String[] getKeyStrengthList() {
|
private String[] getKeyStrengthList() {
|
||||||
// FIXME: fake the list for now
|
return Keystore.getInstance().getSupportedKeyStrenghs();
|
||||||
String[] list = new String[2];
|
|
||||||
list[0] = "1024";
|
|
||||||
list[1] = "512";
|
|
||||||
return list;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getSignedPublicKey(int index, String challenge, String url) {
|
private String getSignedPublicKey(int index, String challenge, String url) {
|
||||||
// FIXME: do nothing for now
|
return Keystore.getInstance().generateKeyPair(index, challenge, url);
|
||||||
Log.w(LOGTAG, "getSignedPublicKey for " + index + " and challenge="
|
|
||||||
+ challenge + " and url=" + url);
|
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private native void nativeConstructor();
|
private native void nativeConstructor();
|
||||||
|
|||||||
Reference in New Issue
Block a user