All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.global.api.entities.EncryptionData Maven / Gradle / Ivy

There is a newer version: 14.2.3
Show newest version
package com.global.api.entities;

import lombok.Getter;
import lombok.Setter;

public class EncryptionData {
    private String version;
    private String trackNumber;
    private String ksn;
    private String ktb;
    @Getter
    @Setter
    private String encryptedKTB;

    public String getVersion() {
        return version;
    }
    public void setVersion(String version) {
        this.version = version;
    }
    public String getTrackNumber() {
        return trackNumber;
    }
    public void setTrackNumber(String trackNumber) {
        this.trackNumber = trackNumber;
    }
    public String getKsn() {
        return ksn;
    }
    public void setKsn(String ksn) {
        this.ksn = ksn;
    }
    public String getKtb() {
        return ktb;
    }
    public void setKtb(String ktb) {
        this.ktb = ktb;
    }

    public static EncryptionData version1() {
        EncryptionData rvalue = new EncryptionData();
        rvalue.setVersion("01");
        return rvalue;
    }
    public static EncryptionData version2(String ktb) {
        return version2(ktb, null);
    }
    public static EncryptionData version2(String ktb, String trackNumber) {
        EncryptionData rvalue = new EncryptionData();
        rvalue.setVersion("02");
        rvalue.setTrackNumber(trackNumber);
        rvalue.setKtb(ktb);
        return rvalue;
    }

    public static EncryptionData add(String ksn,String trackNumber){
        EncryptionData rvalue = new EncryptionData();
        rvalue.setTrackNumber(trackNumber);
        rvalue.setKsn(ksn);
        return rvalue;
    }

    public static EncryptionData setKtbAndKsn(String ktb,String ksn){
        EncryptionData rvalue = new EncryptionData();
        rvalue.setKtb(ktb);
        rvalue.setKsn(ksn);
        return rvalue;
    }

    public static EncryptionData setKSNAndEncryptedData(String ktb,String ksn){
        EncryptionData rvalue = new EncryptionData();
        rvalue.setKtb(ktb);
        rvalue.setKsn(ksn);
        return rvalue;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy