The Research and Implementation of Web System Based on Authentication Method of Unix and JAAS Security Mechanism
- Author
- LiuJingLin
- Advisor
- ZhengJianDe
- School
- Xiamen University
- Major
- Applied Computer Technology
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 38
- Citations
- 0
Abstract
With the rapid development of information technology, the Web system based on J2EE architecture is widely used in enterprises, institutions and other fields, especially in the large number of applications in very high security requirements, such as e-commerce system, making it the Web application system increasingly concerned about security, network security is increasingly becoming an urgent problem to be solved. In this paper, a web-based document management system as the project background, J2EE Web application security, an application Unix authentication with JAAS technology to enhance Web security solutions. The article first introduces the Unix password-based authentication, through the use of SHA-1 hash algorithm calculation password, password salt (Salt) message digest, and stored in the database, the system password authentication only compare the hash value of the password without comparing the password value itself, the password authentication method can increase the workload of the attacker takes to launch a brute force dictionary attack on the protected data, thereby enhancing based forms authentication password security, the security of the system higher; followed by the introduction of Java security system and in-depth analysis of JAAS, Java security architecture that focused on the core classes in the JAAS Authentication and Authorization Service, including Subject subject, JAAS authentication and authorization class and elaborated JAAS authentication and authorization workflow. Design and Implementation of the system, this paper, based on the the JAAS security mechanism analysis and discussion on the basis of in-depth study and research of the MVC design patterns and Struts framework to create a design application the JAAS security mechanisms and web-based document management system based on Struts framework. Struts Framework Web application based on the MVC design pattern, reflecting the hierarchical design of J2EE applications, and can effectively achieve the separation of business logic and display logic, improve code reusability and flexibility, which can improve the system can be maintainability and scalability, and to achieve rapid development of Web applications based on J2EE platform. This system is mainly for online logged-in user management and file resources operations management, various functional modules in the system follows the MVC architecture component design and coordination of the various components of the Struts framework. The system uses dynamic the JAAS security mechanisms provided pluggable model to achieve user identity security certification, so that the application has a more flexible, scalable security mechanism through JAAS authentication process in combination with Unix authentication, effectively enhance the security of the system; take full advantage of the the Struts powerful components function at the same time, greatly enhance the efficiency of Web application development, the initial realization of the establishment of a safe, efficient and easy to extend and maintain the system based on J2EE Web design goal .
Table of contents
Abstract 4-5
Abstract 5-13
Chapter 1 Introduction 13-15
1.1 thesis significance 13
1.2 content and objectives 13-14
1.3 papers organizational structure 14-15
Chapter 2 authentication technology 15-18 <br / > 2.1 hashing algorithm 15
2.2 password-based authentication technology 15-16
2.3 Unix authentication 16-18
Chapter 3 Java2 security architecture and JAAS technology 18-29
3.1 J2EE Platform Overview 18-19
3.2 Java2 security architecture 19-23
3.2 .1 Java security architecture core 19-20
3.2.2 Java Cryptography Architecture 20-22
3.2.3 Java Cryptography Extension 22 <br / > 3.2.4 Java Secure Socket Extension 22-23
3.3 JAAS authentication and authorization mechanisms 23-29
3.3.1 JAAS Overview 23-25
3.3.2 JAAS core classes 25-26
3.3.3 JAAS authentication and authorization of the basic process 26-29
Chapter 4 MVC-based Struts framework 29-39
4.1 MVC design pattern outlined 29-33
4.1.1 JSP development of two design patterns 29-30
4.1.2 MVC design pattern 30-33
4.2 Struts framework and its working principle 33-37
4.2.1 Struts Framework Overview 33
4.2.2 Struts MVC framework implementation mechanisms 33-34
4.2.3 Struts core components 34-36
4.2.4 Struts configuration 36-37
4.3 Struts workflow 37-39
Chapter 5 Unix-based JAAS authentication and security mechanisms for Web application system design 39-44
5.1 System Overview 39
5.2 overall system design 39-40
5.3 system function design description 40
5.3.1 User Management 40
5.3.2 File Management 40
5.4 System database design 40-42
5.4.1 system data model design 40-41
5.4 .2 System database design 41-42
5.5 system security design 42
5.6 system development environment 42-44
5.6.1 Eclipse development Platform 42-43
5.6.2 MyEclipse plugin 43
5.6.3 Tomcat server 43
5.6.4 MySQL open source database 43-44
Chapter 6 Unix-based JAAS authentication and security mechanisms for Web system specific 44-61
6.1 Unix authentication in the Web system in the specific application 44-50
6.1.1 encrypted password storage 44-48
6.1.2 encrypted password authentication 48-50
6.2 JAAS security mechanisms in the Web System 50-54
6.2.1 JAAS login configuration file with the LoginContext context object 50-51
6.2.2 custom callback handler class 51-52
6.2.3 login authentication module 52-54
6.3 Struts framework as a Web-based system to achieve 54-61
6.3.1 User Authentication Module 54-58
6.3.2 New User Module 58-59
6.3.3 Editing User Module 59
6.3.4 View user directory module 59-60
6.3.5 file upload module 60-61
Chapter 7 system security and other related technologies 61-64
7.1 Certification code technology 61-62
7.2 Filter filter and its application 62-64
Chapter 8 Summary and Outlook 64-66
for Master Degree of papers published during 66-67
References 67-69
Thanks 69