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 DUKPTResult {
020    private byte[] ksn;
021    private byte[] result;
022
023    public DUKPTResult() {
024        this.ksn = new byte[0];
025        this.result = new byte[0];
026    }
027
028    public DUKPTResult(byte[] ksn, byte[] result) {
029        this.ksn = ksn;
030        this.result = result;
031    }
032
033    /**
034     * <div class="zh"> 设置KSN </div> <div class="en"> set KSN </div>
035     * 
036     * @return
037     */
038    public byte[] getKsn() {
039        return ksn;
040    }
041
042    /**
043     * <div class="zh"> 获取KSN </div> <div class="en"> get KSN </div>
044     * 
045     * @param ksn
046     */
047    public void setKsn(byte[] ksn) {
048        this.ksn = ksn;
049    }
050
051    /**
052     * <div class="zh"> 获取DUKPT结果 </div> <div class="en"> get DUKPT result </div>
053     * 
054     * @return
055     */
056    public byte[] getResult() {
057        return result;
058    }
059
060    /**
061     * <div class="zh"> 设置DUKPT结果 </div> <div class="en"> set DUKPT result </div>
062     * 
063     * @param result
064     */
065    public void setResult(byte[] result) {
066        this.result = result;
067    }
068}