불필요 파일 정리
This commit is contained in:
parent
62b8056e4d
commit
3a8bf8823c
@ -1,104 +0,0 @@
|
|||||||
package nlib.sample.web;
|
|
||||||
|
|
||||||
import java.awt.image.BufferedImage;
|
|
||||||
import java.io.ByteArrayOutputStream;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
import javax.imageio.ImageIO;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.http.MediaType;
|
|
||||||
import org.springframework.security.access.annotation.Secured;
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.ui.ModelMap;
|
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
|
||||||
|
|
||||||
import nlib.cmm.qrcode.QRCodeUtil;
|
|
||||||
import nlib.user.service.NlibLoginVO;
|
|
||||||
import nlib.util.StringUtil;
|
|
||||||
|
|
||||||
@Controller
|
|
||||||
public class BarcodeController {
|
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(BarcodeController.class);
|
|
||||||
|
|
||||||
/** QRCodeService */
|
|
||||||
@Resource(name = "qrCodeService")
|
|
||||||
private QRCodeUtil qrCodeService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 샘플 : 회원정보를 입력받을 수 있는 폼을 구성하여 표출한다.
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
@RequestMapping(value="/sample/barcode/getMemberQRCodeForm.do", produces=MediaType.IMAGE_JPEG_VALUE)
|
|
||||||
@Secured("ROLE_ADMIN")
|
|
||||||
public String getMemberQRCodeForm(@ModelAttribute("loginVO") NlibLoginVO loginVO, ModelMap model) throws Exception {
|
|
||||||
|
|
||||||
log.debug("getMemberQRCodeForm : loginVO=" + loginVO.toString());
|
|
||||||
|
|
||||||
if(StringUtil.isEmpty(loginVO.getMbInfoId())) loginVO.setMbInfoId("USER0001-000001");
|
|
||||||
if(StringUtil.isEmpty(loginVO.getEmail())) loginVO.setEmail("myid@digitalship.co.kr");
|
|
||||||
if(StringUtil.isEmpty(loginVO.getName())) loginVO.setName("홍길동");
|
|
||||||
|
|
||||||
model.addAttribute("loginVO", loginVO);
|
|
||||||
|
|
||||||
return "nlib/sample/getMemberInfoFromQRCode";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 샘플 : 입력받은 회원정보를 가지고 QR 2D 바코드를 생성하는 예를 보여준다.
|
|
||||||
* 결과값은 JPG 바코드 이미지 이다. (Zxing Lib 사용)
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
@RequestMapping(value="/sample/barcode/getMemberQRCode.do", produces=MediaType.IMAGE_JPEG_VALUE)
|
|
||||||
public @ResponseBody byte[] getMemberQRCode(@ModelAttribute("loginVO") NlibLoginVO loginVO, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
||||||
|
|
||||||
log.debug("getMemberQRCode : loginVO=" + loginVO.toString());
|
|
||||||
|
|
||||||
BufferedImage bufferedImage = qrCodeService.generateMemberQrcodeImage(loginVO);
|
|
||||||
|
|
||||||
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
|
||||||
ImageIO.write( bufferedImage , "jpg", byteArrayOutputStream);
|
|
||||||
byte[] bs = byteArrayOutputStream.toByteArray();
|
|
||||||
response.setContentLength(bs.length);
|
|
||||||
|
|
||||||
return byteArrayOutputStream.toByteArray();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 샘플 : 회원정보 QR 2D 바코드 내용을 입력받아 사용자VO 정보를 추출하는 예를 보여준다.
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
@RequestMapping(value="/sample/barcode/getMemberInfoFromQRCode.do")
|
|
||||||
public String getMemberInfoFromQRCode(@RequestParam String barcodeText, ModelMap model) throws Exception {
|
|
||||||
|
|
||||||
log.debug("getMemberInfoFromQRCode : barcodeText=" + barcodeText);
|
|
||||||
|
|
||||||
NlibLoginVO loginVO = qrCodeService.getMemberInfoFromQRCode(barcodeText);
|
|
||||||
log.debug("getMemberInfoFromQRCode : loginVO=" + loginVO.toString());
|
|
||||||
|
|
||||||
model.addAttribute("loginVO", loginVO);
|
|
||||||
|
|
||||||
return "nlib/sample/getMemberInfoFromQRCode";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,112 +0,0 @@
|
|||||||
package nlib.sample.web;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.ui.ModelMap;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
|
|
||||||
import egovframework.rte.fdl.cryptography.EgovEnvCryptoService;
|
|
||||||
import egovframework.rte.fdl.cryptography.EgovPasswordEncoder;
|
|
||||||
import egovframework.rte.fdl.cryptography.impl.EgovARIACryptoServiceImpl;
|
|
||||||
import nlib.cmm.crypto.AriaCrypto;
|
|
||||||
import nlib.cmm.service.NlibProperty;
|
|
||||||
import nlib.util.StringUtil;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* @Class Name : SampleEncoderController.java
|
|
||||||
*
|
|
||||||
* @Description : 비밀번호 등 인코딩값 조회/생성
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 수정일 수정자 수정내용
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 2021. 7. 8. KNKIM 최초 생성
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
||||||
* @since 2021. 7. 8.
|
|
||||||
* @version 1.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Controller
|
|
||||||
public class SampleEncoderController {
|
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(SampleEncoderController.class);
|
|
||||||
|
|
||||||
/** 암호화서비스 */
|
|
||||||
@Resource(name = "egovEnvCryptoService")
|
|
||||||
EgovEnvCryptoService cryptoService;
|
|
||||||
|
|
||||||
@Resource(name = "egovEnvPasswordEncoderService")
|
|
||||||
EgovPasswordEncoder egovPasswordEncoder;
|
|
||||||
|
|
||||||
|
|
||||||
@Resource(name = "ariaCrypto")
|
|
||||||
AriaCrypto ariaCrypto;
|
|
||||||
|
|
||||||
@Value("#{properties['dataapi.server.ip']}")
|
|
||||||
private String dataapiServerIp;
|
|
||||||
|
|
||||||
@RequestMapping("/sample/password/getSampleEncoder.do")
|
|
||||||
public String getSampleInfoForm(ModelMap model
|
|
||||||
, @RequestParam(required=false) String hash
|
|
||||||
, @RequestParam(required=false) String plainText
|
|
||||||
, @RequestParam(required=false) String encodedText
|
|
||||||
) throws Exception {
|
|
||||||
|
|
||||||
String msg = null;
|
|
||||||
String decodedText = null;
|
|
||||||
|
|
||||||
if(StringUtil.isEmpty(hash)) {
|
|
||||||
msg = "암호화 알고리즘을 선택하여 주시기 바랍니다.";
|
|
||||||
} else if(StringUtil.isNotEmpty(plainText)) {
|
|
||||||
// 암호처리
|
|
||||||
log.debug("암호화 처리 시작 =" + plainText + "=");
|
|
||||||
|
|
||||||
if("sha-256".equalsIgnoreCase(hash)) {
|
|
||||||
encodedText = egovPasswordEncoder.encryptPassword(plainText);
|
|
||||||
} else if("aria".equals(hash)) {
|
|
||||||
|
|
||||||
encodedText = ariaCrypto.encode(plainText);
|
|
||||||
|
|
||||||
log.debug(" Aria plainText=" + plainText);
|
|
||||||
log.debug(" Aria encodedText=" + encodedText);
|
|
||||||
|
|
||||||
decodedText = ariaCrypto.decode(encodedText);
|
|
||||||
log.debug(" Aria after decoding, decodedText=" + decodedText);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
msg = "암호화 알고리즘이 적합하지 않습니다.";
|
|
||||||
}
|
|
||||||
} else if("aria".equalsIgnoreCase(hash) && StringUtil.isNotEmpty(encodedText)) {
|
|
||||||
// 복호처리
|
|
||||||
decodedText = ariaCrypto.decode(encodedText);
|
|
||||||
log.debug(" Aria after decoding, decodedText=" + decodedText);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
msg = "암호화할 문자열을 입력하여 주시기 바랍니다.";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
model.addAttribute("msg", msg);
|
|
||||||
model.addAttribute("hash", StringUtil.getString(hash, "aria"));
|
|
||||||
model.addAttribute("plainText", plainText);
|
|
||||||
model.addAttribute("encodedText", encodedText);
|
|
||||||
model.addAttribute("decodedText", decodedText);
|
|
||||||
model.addAttribute("key", NlibProperty.getProperty("crypto.aria.defaultKey"));
|
|
||||||
|
|
||||||
return "nlib/sample/getSampleEncoder";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,86 +0,0 @@
|
|||||||
<%
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* @Class Name : getSampleInfo.jsp
|
|
||||||
*
|
|
||||||
* @Description : RESTful API 호출 샘플
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 수정일 수정자 수정내용
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 2021. 6. 15. KNKIM 최초 생성
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
||||||
* @since 2021. 6. 15.
|
|
||||||
* @version 1.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
%>
|
|
||||||
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
||||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
|
|
||||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
||||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
|
||||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
|
||||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
|
||||||
<c:set var="pageTitle"><spring:message code="nlib.title"/> - 결과</c:set>
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>${pageTitle}</title>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
|
|
||||||
<script type="text/javaScript" language="javascript">
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!-- javascript warning tag -->
|
|
||||||
<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
|
|
||||||
<form
|
|
||||||
action="${pageContext.request.contextPath}/sample/getItemInfo.do"
|
|
||||||
method="post">
|
|
||||||
|
|
||||||
<div class="wTableFrm">
|
|
||||||
<!-- 타이틀 -->
|
|
||||||
<h2>${pageTitle}</h2>
|
|
||||||
|
|
||||||
<div style="clear:both;">Server Protocol : ${serverProtocol}</div>
|
|
||||||
<div style="clear:both;">Server IP : ${serverIp}</div>
|
|
||||||
<div style="clear:both;">Server PORT : ${serverPort}</div>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
|
|
||||||
mngOrgCd : <input name="mngOrgCd" id="mngOrgCd" value="SU01" /> <br />
|
|
||||||
masterId : <input name="masterId" id="masterId" value="UR-408A9832D25C42289D9B1FC81FDA8360" /> <br />
|
|
||||||
typeDivCd : <input name="typeDivCd" id="typeDivCd" value="IT_MUSE" /> <br />
|
|
||||||
|
|
||||||
<br />
|
|
||||||
resultCode : <input name="resultCode" id="resultCode" value="${resultCode}" /> <br />
|
|
||||||
resultMessage : <input name="resultCode" id="resultCode" value="${resultMessage}" /> <br />
|
|
||||||
info.title : <input name="info.name" id="info.name" value="${info.title}" /> <br />
|
|
||||||
info.typeCodeNm : <input name="info.name" id="info.name" value="${info.typeCodeNm}" /> <br />
|
|
||||||
info.masterId : <input name="info.name" id="info.name" value="${info.masterId}" /> <br />
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<div style="clear:both;"></div>
|
|
||||||
|
|
||||||
<input type="submit" id="btnSubmit" name="btnSubmit" value="전송" />
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,102 +0,0 @@
|
|||||||
<%
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* @Class Name : getSampleInfo.jsp
|
|
||||||
*
|
|
||||||
* @Description : RESTful API 호출 샘플
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 수정일 수정자 수정내용
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 2021. 6. 15. KNKIM 최초 생성
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
||||||
* @since 2021. 6. 15.
|
|
||||||
* @version 1.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
%>
|
|
||||||
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
||||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
|
|
||||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
||||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
|
||||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
|
||||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
|
||||||
<c:set var="pageTitle">QRCode 회원정보</c:set>
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>${pageTitle}</title>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<!-- <link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />"> -->
|
|
||||||
|
|
||||||
<script type="text/javaScript" language="javascript">
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!-- javascript warning tag -->
|
|
||||||
<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
|
|
||||||
<form:form commandName="reqInfo"
|
|
||||||
action="${pageContext.request.contextPath}/sample/barcode/getMemberQRCode.do" method="post"
|
|
||||||
target="_blank"
|
|
||||||
onSubmit="fncAuthorInsert(document.forms[0]); return false;">
|
|
||||||
<div class="wTableFrm">
|
|
||||||
<!-- 타이틀 -->
|
|
||||||
<h2>${pageTitle} - QR코드 생성 </h2>
|
|
||||||
uniqId : <input name="uniqId" id="uniqId" value="${loginVO.uniqId}" /> <br />
|
|
||||||
email : <input name="email" id="email" value="${loginVO.email}" /> <br />
|
|
||||||
name : <input name="name" id="name" value="${loginVO.name}" /> <br />
|
|
||||||
|
|
||||||
<div style="clear:both;"> </div>
|
|
||||||
|
|
||||||
<!-- 하단 버튼 -->
|
|
||||||
<div class="btn">
|
|
||||||
<input type="submit" class="s_submit" value="바코드생성" /> <!-- 조회 -->
|
|
||||||
</div>
|
|
||||||
<div style="clear:both;"></div>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<div style="clear:both;"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</form:form>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
<div style="clear:both;"></div>
|
|
||||||
|
|
||||||
<form:form commandName="reqInfo"
|
|
||||||
action="${pageContext.request.contextPath}/sample/barcode/getMemberInfoFromQRCode.do" method="post"
|
|
||||||
onSubmit="fncAuthorInsert(document.forms[0]); return false;">
|
|
||||||
<div class="wTableFrm">
|
|
||||||
<!-- 타이틀 -->
|
|
||||||
<h2>${pageTitle} - QR코드로부터 사용자정보추출</h2>
|
|
||||||
|
|
||||||
QR코드 생성 로그의 DEBUG [iams.nlib.user.service.QRCodeService] generateMemberQRCodeImage : cryptedBarcodeText 의 값을 넣는다.
|
|
||||||
<div style="clear:both;"> </div>
|
|
||||||
|
|
||||||
barcodeText : <input name="barcodeText" id="barcodeText" value="VVNFUjAwMDEtMDAwMDAxO215aWRAZGlnaXRhbHNoaXAuY28ua3I77ZmN6ri464+ZOw==" /> <br />
|
|
||||||
<div style="clear:both;"> </div>
|
|
||||||
|
|
||||||
<!-- 하단 버튼 -->
|
|
||||||
<div class="btn">
|
|
||||||
<input type="submit" class="s_submit" value="<spring:message code="button.inquire" />" title="<spring:message code="button.inquire" /> <spring:message code="button.inquire" />" /><!-- 조회 -->
|
|
||||||
</div>
|
|
||||||
<div style="clear:both;"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</form:form>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,73 +0,0 @@
|
|||||||
<%
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* @Class Name : getSampleInfo.jsp
|
|
||||||
*
|
|
||||||
* @Description : RESTful API 호출 샘플
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 수정일 수정자 수정내용
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 2021. 6. 15. KNKIM 최초 생성
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
||||||
* @since 2021. 6. 15.
|
|
||||||
* @version 1.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
%>
|
|
||||||
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
||||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
|
|
||||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
||||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
|
||||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
|
||||||
|
|
||||||
<c:set var="pageTitle">암호화</c:set>
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>${pageTitle}</title>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<!-- <link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />"> -->
|
|
||||||
|
|
||||||
<script type="text/javaScript" language="javascript">
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<!-- javascript warning tag -->
|
|
||||||
<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
|
|
||||||
<form:form commandName="reqInfo"
|
|
||||||
action="${pageContext.request.contextPath}/sample/password/getSampleEncoder.do" method="post" >
|
|
||||||
<div class="wTableFrm">
|
|
||||||
<!-- 타이틀 -->
|
|
||||||
<h2>${pageTitle} </h2>
|
|
||||||
msg : ${msg} <br />
|
|
||||||
hash : <input name="hash" id="hash" value="${hash}" /> ("sha-256" 또는 "aria" 입력) <br />
|
|
||||||
key : ${key} (hash 알고리즘이 aria인 경우) <br />
|
|
||||||
plainText : <input name="plainText" id="plainText" value="${plainText}" /> <br />
|
|
||||||
encodedText : <input name="encodedText" id="encodedText" value="${encodedText}" /> <br />
|
|
||||||
decodedText : ${decodedText} <br />
|
|
||||||
<div style="clear:both;"> </div>
|
|
||||||
|
|
||||||
<!-- 하단 버튼 -->
|
|
||||||
<div class="btn">
|
|
||||||
<input type="submit" value="암/복호화 실행" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</form:form>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,80 +0,0 @@
|
|||||||
<%
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* @Class Name : getSampleInfo.jsp
|
|
||||||
*
|
|
||||||
* @Description : RESTful API 호출 샘플
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 수정일 수정자 수정내용
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 2021. 6. 15. KNKIM 최초 생성
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
||||||
* @since 2021. 6. 15.
|
|
||||||
* @version 1.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
%>
|
|
||||||
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
||||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
|
|
||||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
||||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
|
||||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
|
||||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
|
||||||
<c:set var="pageTitle"><spring:message code="nlib.title"/> - 결과</c:set>
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>${pageTitle}</title>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<!-- <link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />"> -->
|
|
||||||
|
|
||||||
<script type="text/javaScript" language="javascript">
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!-- javascript warning tag -->
|
|
||||||
<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
|
|
||||||
<form:form commandName="reqInfo"
|
|
||||||
action="${pageContext.request.contextPath}/sample/getSampleInfo.do" method="post"
|
|
||||||
onSubmit="fncAuthorInsert(document.forms[0]); return false;">
|
|
||||||
<div class="wTableFrm">
|
|
||||||
<!-- 타이틀 -->
|
|
||||||
<h2>${pageTitle}</h2>
|
|
||||||
|
|
||||||
<div style="clear:both;">Server Protocol : ${serverProtocol}</div>
|
|
||||||
<div style="clear:both;">Server IP : ${serverIp}</div>
|
|
||||||
<div style="clear:both;">Server PORT : ${serverPort}</div>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
|
|
||||||
page : <input name="page" id="page" value="1" /> <br />
|
|
||||||
rows : <input name="rows" id="rows" value="10" /> <br />
|
|
||||||
|
|
||||||
<br />
|
|
||||||
resultCode : <input name="resultCode" id="resultCode" value="${result.resultCode}" /> <br />
|
|
||||||
resultMessage : <input name="resultCode" id="resultCode" value="${result.resultMessage}" /> <br />
|
|
||||||
info.name : <input name="info.name" id="info.name" value="${result.info.name}" /> <br />
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<div style="clear:both;"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</form:form>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,100 +0,0 @@
|
|||||||
<%
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* @Class Name : getSampleInfoForm.jsp
|
|
||||||
*
|
|
||||||
* @Description : RESTful API 호출 샘플
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 수정일 수정자 수정내용
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 2021. 6. 15. KNKIM 최초 생성
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
||||||
* @since 2021. 6. 15.
|
|
||||||
* @version 1.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
%>
|
|
||||||
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
||||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
|
|
||||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
||||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
|
||||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
|
||||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
|
||||||
|
|
||||||
<c:set var="pageTitle"><spring:message code="nlib.title"/></c:set>
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>${pageTitle}</title>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<!-- <link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />"> -->
|
|
||||||
|
|
||||||
<script type="text/javaScript" language="javascript">
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!-- javascript warning tag -->
|
|
||||||
<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
|
|
||||||
<form:form commandName="reqInfo"
|
|
||||||
action="${pageContext.request.contextPath}/sample/getSampleInfo.do" method="post"
|
|
||||||
onSubmit="fncAuthorInsert(document.forms[0]); return false;">
|
|
||||||
<div class="wTableFrm">
|
|
||||||
<!-- 타이틀 -->
|
|
||||||
<h2>${pageTitle}</h2>
|
|
||||||
|
|
||||||
<div style="clear:both;">Server Protocol : ${serverProtocol}</div>
|
|
||||||
<div style="clear:both;">Server IP : ${serverIp}</div>
|
|
||||||
<div style="clear:both;">Server PORT : ${serverPort}</div>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
|
|
||||||
page : <input name="page" id="page" value="1" /> <br />
|
|
||||||
rows : <input name="rows" id="rows" value="10" /> <br />
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<!-- 하단 버튼 -->
|
|
||||||
<div class="btn">
|
|
||||||
<input type="submit" class="s_submit" value="<spring:message code="button.inquire" />" title="<spring:message code="button.inquire" /> <spring:message code="button.inquire" />" /><!-- 조회 -->
|
|
||||||
</div>
|
|
||||||
<div style="clear:both;"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</form:form>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
실제 서버로 REQ ============= <br />
|
|
||||||
<!-- < formx : form action="http://210.181.197.70/uac/service/exports" method="GET" > -->
|
|
||||||
<form:form action="http://localhost:8088/uac/service/exports" method="GET" >
|
|
||||||
page : <input name="page" id="page" value="1" /> <br />
|
|
||||||
rows : <input name="rows" id="rows" value="10" /> <br />
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<!-- 하단 버튼 -->
|
|
||||||
<div class="btn">
|
|
||||||
<input type="submit" class="s_submit" value="<spring:message code="button.inquire" />" title="<spring:message code="button.inquire" /> <spring:message code="button.inquire" />" /><!-- 조회 -->
|
|
||||||
</div>
|
|
||||||
<div style="clear:both;"></div>
|
|
||||||
|
|
||||||
</form:form>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,43 +0,0 @@
|
|||||||
<%
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* @Class Name : getSampleInfo.jsp
|
|
||||||
*
|
|
||||||
* @Description : RESTful API 호출 샘플
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 수정일 수정자 수정내용
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 2021. 6. 15. KNKIM 최초 생성
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
||||||
* @since 2021. 6. 15.
|
|
||||||
* @version 1.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
%>
|
|
||||||
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
||||||
<c:set var="pageTitle"><spring:message code="nlib.title"/> - 결과</c:set>
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>${pageTitle}</title>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<script type="text/javaScript" language="javascript">
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
All
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,43 +0,0 @@
|
|||||||
<%
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* @Class Name : getSampleInfo.jsp
|
|
||||||
*
|
|
||||||
* @Description : RESTful API 호출 샘플
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 수정일 수정자 수정내용
|
|
||||||
* @ ------------ -------- ---------------------------
|
|
||||||
* @ 2021. 6. 15. KNKIM 최초 생성
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
||||||
* @since 2021. 6. 15.
|
|
||||||
* @version 1.0
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
%>
|
|
||||||
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
||||||
<c:set var="pageTitle"><spring:message code="nlib.title"/> - 결과</c:set>
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>${pageTitle}</title>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<script type="text/javaScript" language="javascript">
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
All
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Loading…
Reference in New Issue
Block a user