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 RSAKeyInfo {
020
021    private int modulusLen;
022    private byte[] modulus;
023    private int exponentLen;
024    private byte[] exponent;
025    private byte[] keyInfo;
026
027    /**
028     * <div class="zh"> 模位数长度 </div> <div class="en"> the length of modulus bits </div>
029     * 
030     * @return
031     */
032    public int getModulusLen() {
033        return modulusLen;
034    }
035
036    /**
037     * <div class="zh"> 模位数长度 </div> <div class="en"> the length of modulus bits </div>
038     * 
039     * @param modulusLen
040     */
041    public void setModulusLen(int modulusLen) {
042        this.modulusLen = modulusLen;
043    }
044
045    /**
046     * <div class="zh"> 模,模长小于512字节时,靠右存储,左补0x00 </div> <div class="en"> If the length of modulus is less than 512
047     * bytes, store from right, padded with 0x00 on the left </div>
048     * 
049     * @return
050     */
051    public byte[] getModulus() {
052        return modulus;
053    }
054
055    /**
056     * <div class="zh"> 模,模长小于512字节时,靠右存储,左补0x00。 </div> <div class="en"> If the length of modulus is less than 512
057     * bytes, store from right, padded with 0x00 on the left </div>
058     * 
059     * @param modulus
060     */
061    public void setModulus(byte[] modulus) {
062        this.modulus = modulus;
063    }
064
065    /**
066     * <div class="zh"> 指数位长度 </div> <div class="en"> Exponent length </div>
067     * 
068     * @return
069     */
070    public int getExponentLen() {
071        return exponentLen;
072    }
073
074    /**
075     * <div class="zh"> 指数位长度 </div> <div class="en"> Exponent length </div>
076     * 
077     * @param exponentLen
078     */
079    public void setExponentLen(int exponentLen) {
080        this.exponentLen = exponentLen;
081    }
082
083    /**
084     * <div class="zh"> 指数,小于512字节时,左补0x00 </div> <div class="en"> When exponent less than 512 bytes,padded with 0x00 on
085     * the left </div>
086     * 
087     * @return
088     */
089    public byte[] getExponent() {
090        return exponent;
091    }
092
093    /**
094     * <div class="zh"> 指数,小于512字节时,左补0x00 </div> <div class="en"> When exponent less than 512 bytes,padded with 0x00 on
095     * the left </div>
096     * 
097     * @param exponent
098     */
099    public void setExponent(byte[] exponent) {
100        this.exponent = exponent;
101    }
102
103    /**
104     * <div class="zh"> 密钥信息 </div> <div class="en"> Key information will be customized by application </div>
105     * 
106     * @return
107     */
108    public byte[] getKeyInfo() {
109        return keyInfo;
110    }
111
112    /**
113     * <div class="zh"> 密钥信息 </div> <div class="en"> Key information will be customized by application </div>
114     * 
115     * @param keyInfo
116     */
117    public void setKeyInfo(byte[] keyInfo) {
118        this.keyInfo = keyInfo;
119    }
120}