public class HttpsUtils
extends java.lang.Object
构造器和说明 |
---|
HttpsUtils() |
限定符和类型 | 方法和说明 |
---|---|
static javax.net.ssl.SSLSocketFactory |
buildSslSocketFactory(android.content.Context context,
java.lang.String certFilePath)
Build SSLSocketFactory using certificate file from assets.
|
static java.security.cert.Certificate |
getX509CertifaceteFromCrtFile(java.lang.String certFilePath)
Get X509 Certificate
|
static void |
sendWithSSlSocket(java.lang.String urlLink)
已过时。
|
static java.lang.String |
sendWithSSlSocketWithCrt(android.content.Context context,
java.lang.String certFilePath,
java.lang.String uri)
Send https request with certificate file in assets.
|
public static java.security.cert.Certificate getX509CertifaceteFromCrtFile(java.lang.String certFilePath)
certFilePath
- public static javax.net.ssl.SSLSocketFactory buildSslSocketFactory(android.content.Context context, java.lang.String certFilePath)
context
- certFilePath
- public static void sendWithSSlSocket(java.lang.String urlLink)
public static java.lang.String sendWithSSlSocketWithCrt(android.content.Context context, java.lang.String certFilePath, java.lang.String uri) throws java.lang.Exception
context
- certFilePath
- uri
- java.lang.Exception