Đang chuẩn bị liên kết để tải về tài liệu:
Lập trình Java nâng cao part 9

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

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 System.in Keystore store Keystore.getlnstance JKS SUN Inputstream in new Fileinputstream ksName chart password - readFhssword console Keystone password store.load in password Arrays. fill password Xoámậtkhầu in.close char keyPassword - readPasswDid console Keystore password for alias PrivateKey privKey PrivateKey storé.getKey alias keyPassword Arrays.fill keypassword if privKey null error No such private key in new Fileinputstream inName CertificateFactory factory CertificateFactory.getInstance X.509 X509Certificate inCert X509Certificate factory.generateCertificate in in.close byte inCertBytes inCert.getTBSCertificate X509Certificate issuerCert X509Certificate store getCertificate alias 314 LẬP TRÌNH JAVA NÂNG CAO Principal issuer issuerCert.getSubjectDN String issuerAlg issuerCert.getSigAlgName FileOutputStream out new FileOutputStream outName X509CertInfo info new X509CertInfo inCertBytes info.set X509CertInfo.ISSUER new CertificateIssuerName X500Name issuer X509CertImpl outCert new X509CertIm.pl info outCert.sign privKey issuerAlg outCert.derEncode out out.close catch Exception e System.out.printin Error e public static char readPassword PushbackReader in String promp throws IOException System.out.print promp System.out.flush final int MAX_PASSWORD_LENGTH 100 int leng 0 chart buff new char MAX_PASSWORD_LENGTH while true int ch in.read 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 in.read 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 System.arraycopy buff 0 password 0 leng Arrays.fill buff return password else buff leng char ch leng public static void usage System.out.printin 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.