`
sparrow82
  • 浏览: 40667 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
1、openssl生成公司钥对 openssl req -x509 -out public_key.der -outform der -new -newkey rsa:1024 -keyout private_key.pem 生成私钥:private_key.pem 公钥:public_key.der 2、将private_key.pem转换成PKCS8Padding格式 openssl pkcs8 -topk8 -inform PEM -in private_key.pem -outform PEM -nocrypt 返回一串字符如: -----BEGIN PRIVATE KEY----- ...
参考ASIHHPRequest开源项目中的ClientCertificateTests.m源码。 链接:https://github.com/pokeb/asi-http-request/blob/master/Classes/Tests/ClientCertificateTests.m 以及:http://developer.apple.com/library/mac/#documentation/Security/Conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html + (void)testClientCerti ...
在android项目中,可以使用ksoap访问WebService。但是HttpTransportSE.java类中,没有支持设置连接超时的方法,这样在特定的情况下会很不方便。查了很多资料也没什么很好的方法,最后决定自己改源码了。 首先,在ServiceConnection.java接口中,新增一个方法: public void setConnectTimeOut(int timeout); 然后在ServiceConnectionSE.java类中,实现setConnectTimeOut(int timeout)方法: public void setConnectTimeOut( ...
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_selected="true" android:color="@color/yel" /> <item android:state_focused="true&quo ...
Uri uri = Uri.parse("http://maps.google.com/maps?q=(%E6%A5%BC%E5%A4%96%E6%A5%BC)&z=21"); Intent intent = new Intent(Intent.ACTION_VIEW,uri); ComponentName comp = new ComponentName("com.google.android.apps.maps","com.google.android.maps.MapsActivity"); intent.set ...
ophone的sdk配置与android有点不同,在eclipse中有两个地方需要配置: 1、 2、 两个地方都配置好后,重启eclipse。
Android Intent的几种用法全面总结 Intent应该算是Android中特有的东西。你可以在Intent中指定程序要执行的动作(比如:view,edit,dial),以及程序执行到该动作时所需要的资料。都指定好后,只要调用startActivity(),Android系统会自动寻找最符合你指定要求的应用程序,并执行该程序。 下面列出几种Intent的用法 显示网页: Uri uri = Uri.parse("http://www.google.com"); Intent it = new Intent(Intent.ACTION_VIEW,uri) ...
android.permission.ACCESS_CHECKIN_PROPERTIES Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded 允许读写访问 "properties"表在checkin数据库中,改值可以修改上传 android.permission.ACCESS_COARSE_LOCATION Allows an application to access coar ...
Global site tag (gtag.js) - Google Analytics