001 /* 002 * =========================================================================================== 003 * = COPYRIGHT 004 * PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION 005 * This software is supplied under the terms of a license agreement or nondisclosure 006 * agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or 007 * disclosed except in accordance with the terms in that agreement. 008 * Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved. 009 * Description: // Detail description about the function of this module, 010 * // interfaces with the other modules, and dependencies. 011 * Revision History: 012 * Date Author Action 013 * 2017/04/01 PAX Create/Add/Modify/Delete 014 * =========================================================================================== 015 */ 016 017package com.pax.dal.entity; 018 019public class SM2KeyPair { 020 private byte[] pubKey; 021 private byte[] pvtKey; 022 023 /** 024 * <div class="zh"> SM2 公钥 </div> <div class="en"> SM2 public key </div> 025 * 026 * @return 027 */ 028 public byte[] getPubKey() { 029 return pubKey; 030 } 031 032 /** 033 * <div class="zh"> SM2 公钥 </div> <div class="en"> SM2 public key </div> 034 * 035 * @param pubKey 036 */ 037 public void setPubKey(byte[] pubKey) { 038 this.pubKey = pubKey; 039 } 040 041 /** 042 * <div class="zh"> SM2 私钥 </div> <div class="en"> SM2 private key </div> 043 * 044 * @return 045 */ 046 public byte[] getPvtKey() { 047 return pvtKey; 048 } 049 050 /** 051 * <div class="zh"> SM2 私钥 </div> <div class="en"> SM2 private key </div> 052 * 053 * @param pvtKey 054 */ 055 public void setPvtKey(byte[] pvtKey) { 056 this.pvtKey = pvtKey; 057 } 058 059 public SM2KeyPair() { 060 pubKey = new byte[64]; 061 pvtKey = new byte[32]; 062 } 063 064}