0
Android 1.5 용 애플리케이션을 작성 중입니다. Android 1.5 버전이 128 비트 또는 다른 SSL을 지원하는지 알고 싶습니까?Android SSL 지원
Android 1.5 용 애플리케이션을 작성 중입니다. Android 1.5 버전이 128 비트 또는 다른 SSL을 지원하는지 알고 싶습니까?Android SSL 지원
확인, 인증서 오류 무시 여기에 코드 :
public static String makeGETRequest(String s,String encoding)
{
DefaultHttpClient http = new DefaultHttpClient();
SSLSocketFactory ssl = (SSLSocketFactory)http.getConnectionManager().getSchemeRegistry().getScheme("https").getSocketFactory();
ssl.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
HttpResponse res;
try {
res = http.execute(new HttpGet(s));
InputStream is = res.getEntity().getContent();
BufferedInputStream bis = new BufferedInputStream(is);
ByteArrayBuffer baf = new ByteArrayBuffer(50);
int current = 0;
while((current = bis.read()) != -1){
baf.append((byte)current);
}
return new String(baf.toByteArray(),encoding);
}
catch (ClientProtocolException e) {
// TODO Auto-generated catch block
return "error: " + e.getMessage();
}
catch (IOException e) {
// TODO Auto-generated catch block
return "error: " + e.getMessage();
}
}
그래서 128 개 비트를? – rayman
공개 키 RSA (1024 비트) 및 RSA (2048 비트)와 함께 사용하여 그 의미를 확실히 알지 못합니다. ^^ – 2red13