TAILIEUCHUNG - Lập trình Java nâng cao part 9

Tham khảo tài liệu 'lập trình java nâng cao part 9', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chương z VẤN ĐỀ BẢO MẬT VÀ AN NINH THÔNG TIN 313 else usage if ksName null I I alias null I I inName null II outName null usage try PushbackReader console new PushbackReader new InputStreamReader Keystore store JKS SUN Inputstream in new Fileinputstream ksName chart password - readFhssword console Keystone password in password Arrays. fill password Xoámậtkhầu char keyPassword - readPasswDid console Keystore password for alias PrivateKey privKey PrivateKey alias keyPassword keypassword if privKey null error No such private key in new Fileinputstream inName CertificateFactory factory X509Certificate inCert X509Certificate in byte inCertBytes X509Certificate issuerCert X509Certificate store getCertificate alias 314 LẬP TRÌNH JAVA NÂNG CAO Principal issuer String issuerAlg FileOutputStream out new FileOutputStream outName X509CertInfo info new X509CertInfo inCertBytes new CertificateIssuerName X500Name issuer X509CertImpl outCert new info privKey issuerAlg out catch Exception e Error e public static char readPassword PushbackReader in String promp throws IOException promp final int MAX_PASSWORD_LENGTH 100 int leng 0 chart buff new char MAX_PASSWORD_LENGTH while true int ch if ch r I Ị ch n II ch -1 II ch MAX_PASSWORD_LENGTH Í if ch r 7 DOS xem như kết thúc dòng r n ch Chuang 7. VẤN ĐỂ BẢO MẬT VÀ AN NINH THÔNG TIN 315 if ch n ch -1 in. unread ch ỉ char password new char leng buff 0 password 0 leng buff return password else buff leng char ch leng public static void usage Usage java CertificateSigner -keystore keystore - alias issuerKeyAlias -infile .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.