- 앞서 개발한
secureQR-module라이브러리를 적용한 웹 클라이언트 적용 예시 - 암호화된 QR 코드를 생성하고 발급하는 역할을 수행하는 예시
-
로컬에서 실행하는 경우
- 먼저 해당 레파지토리는
Sotree17/secure-module를 라이브러리화 한 jar파일을 사용 Sotree17/secure-server-example의 결과물을 REST API 서버 역할로 둠- 해당 서버에 요청함으로써 암호화된 QR 이미지를 사용자에게 보여주는 흐름을 갖음.
- REST API 서버의 API
/generator에 대한 POST 요청을 통해 이루어짐
(1) 사용자가 입력한 데이터를 기반으로 암호화 QR 생성 요청
(2) 암호화 REST API 서버에서의 인터페이스 구현체 호출
(3) 암호화 QR 라이브러리 Geneator 클래스의 createSecureQRcode() 호출
(3) 암호화 QR 이미지 생성하게됨.
(4) 클라이언트에게 암호화 QR 이미지 byte[] 반환
- 다음의 설계 흐름을 통해 사용자에게 SecureQR 이미지를 보여줌
(1) 응답으로 부터 byte[] 정보 추출
(2) 이미지 파일 저장 경로 설정
(3) 이미지 파일 생성 후 화면에 암호화된 QR 출력
2021-10-21 21:04:04 KST
1 Group: org.apache.httpcomponents Name: httpclient Version: 4.5.13
- POM Project URL: http://hc.apache.org/httpcomponents-client
- POM License: Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0
- Embedded license files: httpclient-4.5.13.jar/META-INF/LICENSE - httpclient-4.5.13.jar/META-INF/NOTICE
2 Group: org.springframework.boot Name: spring-boot-devtools Version: 2.5.4
- POM Project URL: https://spring.io/projects/spring-boot
- POM License: Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0
- Embedded license files: spring-boot-devtools-2.5.4.jar/META-INF/LICENSE.txt - spring-boot-devtools-2.5.4.jar/META-INF/NOTICE.txt
3 Group: org.springframework.boot Name: spring-boot-starter-thymeleaf Version: 2.5.4
- POM Project URL: https://spring.io/projects/spring-boot
- POM License: Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0
- Embedded license files: spring-boot-starter-thymeleaf-2.5.4.jar/META-INF/LICENSE.txt - spring-boot-starter-thymeleaf-2.5.4.jar/META-INF/NOTICE.txt
4 Group: org.springframework.boot Name: spring-boot-starter-web Version: 2.5.4
- POM Project URL: https://spring.io/projects/spring-boot
- POM License: Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0
- Embedded license files: spring-boot-starter-web-2.5.4.jar/META-INF/LICENSE.txt - spring-boot-starter-web-2.5.4.jar/META-INF/NOTICE.txt
1 Name BootStrap Version: 4.0.0-beta


