久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何使用 Bouncy Castle 編輯 Java 中的密碼套件列表

How can I edit the list of cipher suite in Java using Bouncy Castle(如何使用 Bouncy Castle 編輯 Java 中的密碼套件列表)
本文介紹了如何使用 Bouncy Castle 編輯 Java 中的密碼套件列表的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

以下代碼列出了 Java SE 8 支持的密碼套件:

The following code lists the supported cipher suites by Java SE 8:

import java.io.IOException;
import java.net.UnknownHostException;
import java.util.Arrays;

import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSocketFactory;
public class ListCiphers {

    public static void main(String[] args) throws UnknownHostException, IOException
    {
        SSLSocketFactory factory = HttpsURLConnection.getDefaultSSLSocketFactory(); 
        String[] cipherSuites = factory.getSupportedCipherSuites();
        System.out.println(Arrays.toString(cipherSuites));

    } //end main
}

我想制作配置了一些特定密碼套件列表的 SSL 客戶端.我想使用的密碼套件是標準化的,但 Jva SE 8 不支持.例如,這個密碼在 firefox 中列出:

I want to make SSL client which is configured with some specific list of cipher suites. The cipher suites I want to use are standardized but not supported by Jva SE 8. For example, this cipher is listed in firefox:

ECDHE_ECDSA_WITH_AES_256_SHA

請幫助我以任何方式允許我在我的 SSL 客戶端中編輯密碼套件列表.充氣城堡對此有幫助嗎?如何?請一步一步給我清楚.另外,如果您知道我想要什么可以通過使用其他語言(例如 python)來實現,也請幫助我.

Please, help me with any way that allows me to edit the list of cipher suite in my SSL client. Does Bouncy Castle help in this? How? Please, give me clear step by step. Also if you knwo what I want can be achieved by using another language such as python, also please help me.

推薦答案

如何使用 Bouncy Castle 編輯 Java 中的密碼套件列表

How can I edit the list of cipher suite in Java using Bouncy Castle

請參閱要為 SSL 套接字啟用哪些密碼套件? 并使用 SSLSocketFactoryEx.它是 Java 的 SSLSocketFactory

See Which Cipher Suites to enable for SSL Socket? and use SSLSocketFactoryEx. Its a drop-in replacement for Java's SSLSocketFactory

如果你不想使用 SSLSocketFactoryEx,那么就撕掉代碼來找到密碼套件的交集.

If you don't want to use SSLSocketFactoryEx, then rip the code to find the intersection of cipher suites.

它控制協議和密碼套件.沒有意外的驚喜,例如從 SSLSocketFactory.getInstance("TLS"); 獲取 SSLv3 套接字.

It controls both protocols and cipher suites. There are no unexpected surprises, like getting a SSLv3 socket back from SSLSocketFactory.getInstance("TLS");.

沒有什么是可配置的,所以用戶不能在腳上開槍.它也為 TLS 1.3 做好了準備

Nothing is configurable, so the user cannot shoot themselves in the foot. It's also ready for TLS 1.3

這篇關于如何使用 Bouncy Castle 編輯 Java 中的密碼套件列表的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Java Remove Duplicates from an Array?(Java從數組中刪除重復項?)
How to fix Invocation failed Unexpected Response from Server: Unauthorized in Android studio(如何修復調用失敗來自服務器的意外響應:在 Android 工作室中未經授權)
AES encryption, got extra trash characters in decrypted file(AES 加密,解密文件中有多余的垃圾字符)
AES Error: Given final block not properly padded(AES 錯誤:給定的最終塊未正確填充)
Detecting incorrect key using AES/GCM in JAVA(在 JAVA 中使用 AES/GCM 檢測不正確的密鑰)
AES-256-CBC in Java(Java 中的 AES-256-CBC)
主站蜘蛛池模板: 久久五月婷 | 欧美区在线 | 中文字幕一区在线 | 一级毛片在线播放 | 国产欧美精品一区 | www97影院 | 中文字幕一区二区三区乱码在线 | 久久久精品日本 | 国产日韩精品一区 | 成人一区二区三区视频 | www国产成人免费观看视频,深夜成人网 | 亚洲区一区二区 | 四虎在线视频 | 国产精品欧美一区二区 | av手机在线 | 亚洲影音先锋 | 欧美日本一区 | 欧美精品一区二区三区在线播放 | 中文字幕在线观看 | 日韩电影在线一区 | 成人精品福利 | 国产成年人小视频 | 久久久久成人精品亚洲国产 | 国产一区二区三区久久久久久久久 | 91大片 | 国产区在线 | 亚洲成人av| 成人免费观看男女羞羞视频 | 国产亚洲精品久久久久久牛牛 | 国产在线一区二区三区 | 91在线区| 国产免费一区二区三区 | 国产精品黄色 | 久草成人网 | 看一级毛片 | 中文字幕在线一区二区三区 | 精品免费国产一区二区三区四区介绍 | 国产精品成人一区二区三区 | 亚洲精品久久久久中文字幕欢迎你 | 亚洲一区三区在线观看 | 97国产在线视频 |