WORKING WITH DATABASE AND SECURITY IN JAVA
Ấn vào đây để xem thông tin các khóa học khác
GIỚI THIỆU
At the end of this course, students will be able to:
Explain JDBC.
Explain the architecture of JDBC.
Describe the different JDBC drivers.
List the steps to create a JDBC application.
Explain the loading of the JDBC-ODBC bridge driver and establishing connection
Explain the methods and possible exceptions that may occur while creating and executing SQL queries.
Explain the purpose of this step, methods to display the record and close the database connection.
State the syntax of connecting to a database using Type 4 driver.
Describe parameterized queries and state the syntax of creating parameterized queries.
Describe database metadata.
Explain DatabaseMetaData interface and its methods.
Explain ResultSetMetaData interface and its methods.
Describe stored procedures and its benefits.
Explain a stored procedure using Statement.
Explain a stored procedure using CallableStatement.
Describe scrollable resultsets.
List ResultSet constant values.
Describe Updatable ResultSet.
State the various methods of creating an Updatable ResultSet.
Describe Batch Update and list its benefits.
Explain the steps of implementing batch updates using Statement interface.
Describe how to implement batch updates using PreparedStatement Interface.
Describe how to implement batch updates using CallableStatement Interface.
Describe transactions and state its need.
Explain the steps of implementing transactions using JDBC.
Describe RowSet.
List the benefits of RowSet.
Describe the types of RowSet. (JDBCRowSet and CachedRowSet)
Describe JDBCRowSet object.
Explain how to use JDBCRowSet instance to insert, update, delete and retrieve records.
Describe CachedRowSet.
Explain how to use CachedRowSet instance to insert, update, delete and retrieve records.
Describe the concept of security.
Describe the goals of Java Security.
Explain how Java security model helps to achieve the goal.
Describe the security restrictions on applets.
Describe the use of policy file to grant permissions to applets.
Explain the effects of policy file on security restrictions.
Explain why applications do not have security restrictions.
xplain how to impose security restrictions on applications.
Describe the use of policy file to grant permissions to an application.
Explain the behavior of application after applying policies.
Describe authentication.
Describe authorization.
Describe JAAS.
Explain how to implement authentication and
Authorization using java Security API.
Describe cryptography.
Explain Cipher class.
Explain the steps to encrypt data.
Explain PBEKeySpec class.
Explain PBEParameterSpec class.
Explain SecretKeyFactory class.
Explain how to encrypt data using password.
Describe digital signature and state its need.
Explain the working of digital signature.
Describe the drawbacks of digital signature.
Explain how digital certificates enable the receiver to verify the authenticity of sender.
Describe digital keys.
Explain how to sign a jar file and the steps involved in it.
Explain how to verify digital certificate and the steps involved in it.
Explain the steps involved in generating public and private keys.
Explain the steps involved in signing data using Signature class.
Explain how to save signature and public key.
Explain how to construct public key, construct the signature and then verify the signature.
THỜI GIAN
18 giờ (Lý thuyết + Thực hành)
NỘI DUNG
STT
Nội dung
1
JDBC
2
RowSets
3
Java Security
4
Cryptography
5
Digital Signatures
TÀI LIỆU
Lý thuyết :
Thực hành :
Assignment 1 : Viết chương trình quản lý thông tin các đội bóng có giao diện và các chức năng thêm/sửa/xóa như sau:
Assignment 2 : Viết chương trình quản lý thông tin sinh viên StudentManagement có giao diện như sau:
Khi chạy chương trình thì dữ liệu về sinh viên trong database được hiển thị đầy đủ. Khi ấn vào các nút Add New, Update, Delete, Exit thì thực hiện các chức năng tương ứng. Ví dụ khi ấn nút Add New thì hiển thị cửa sổ để người dùng nhập thông tin mới, khi ấn Update/Delete thì hiển thị cửa sổ mới trong đó có thông tin về sinh viên để tiến hành sửa/xóa:
Assignment 3 : Viết chương trình quản lý thông tin sinh viên tương tự bài 1 nhưng có các nút "duyệt" như minh họa dưới đây:
Lưu ý: trạng thái các nút phải phù hợp với vị trí đang duyệt, ví dụ trên hình vẽ khi đang xem thông tin sinh viên đầu tiên thì nút "<" không có hiệu lực,...
Assignment 4 : Viết form có giao diện như bên dưới. Người dùng sẽ nhập username và password vào ô tương ứng và ấn nút "Login" để đăng nhập hoặc "Add New" để chèn thông tin mới. Lưu ý trường password trong database phải được mã hóa.
Đề bài tập thực hành có lời giải (DBSJ lab exercises & source code): Sẽ cung cấp trong giờ Lab 1
Bài kiểm tra (Assignment 1, 2, 3)
PHẦN MỀM
Mọi thắc mắc, vui lòng liên hệ: haianh_neu@yahoo.com