Merge change 6204 into donut

* changes:
  Migrate to new keystore with the CertTool lib.
This commit is contained in:
Android (Google) Code Review
2009-07-06 03:55:07 -07:00

View File

@ -17,7 +17,7 @@
package com.android.server.vpn; package com.android.server.vpn;
import android.net.vpn.L2tpIpsecProfile; import android.net.vpn.L2tpIpsecProfile;
import android.security.Keystore; import android.security.CertTool;
import java.io.IOException; import java.io.IOException;
@ -48,17 +48,17 @@ class L2tpIpsecService extends VpnService<L2tpIpsecProfile> {
} }
private String getCaCertPath() { private String getCaCertPath() {
return Keystore.getInstance().getCaCertificate( return CertTool.getInstance().getCaCertificate(
getProfile().getCaCertificate()); getProfile().getCaCertificate());
} }
private String getUserCertPath() { private String getUserCertPath() {
return Keystore.getInstance().getUserCertificate( return CertTool.getInstance().getUserCertificate(
getProfile().getUserCertificate()); getProfile().getUserCertificate());
} }
private String getUserkeyPath() { private String getUserkeyPath() {
return Keystore.getInstance().getUserPrivateKey( return CertTool.getInstance().getUserPrivateKey(
getProfile().getUserCertificate()); getProfile().getUserCertificate());
} }
} }