// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/props/ScreenProperties.java
// public class ScreenProperties {
//     private static ResourceBundle bundle;
//     
//     public static String getValue(final String key) {
//         if (bundle == null) {
//             bundle = ResourceBundle.getBundle("screen_values", Config.locale);
//         }
//         return bundle.getString(key);
//     }
//     
// }


import java.util.ArrayList;
import java.util.List;
import tr.gov.turkiye.esignuidesk.props.ScreenProperties;
import java.security.cert.X509Certificate;
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package tr.gov.turkiye.esignuidesk.data;


/**
 * Holds user data during runtime.
 * 
 * @author iakpolat
 */
public class UserData {
    /**
     * User certificates in card
     */
    public static List<X509Certificate> certs = new ArrayList<>();
    /**
     * Selected card type
     */
    public static String slcCardType = null;
    /**
     * Selected certificate index
     */
    public static int slcCertIndex = 0;
    /**
     * Pin password
     */
    public static char[] pinPass;
    /**
     * User agreement data different to each user since it contains time.
     */
// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/props/ScreenProperties.java
// public class ScreenProperties {
//     private static ResourceBundle bundle;
//     
//     public static String getValue(final String key) {
//         if (bundle == null) {
//             bundle = ResourceBundle.getBundle("screen_values", Config.locale);
//         }
//         return bundle.getString(key);
//     }
//     
// }


// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/data/UserData.java
import java.util.ArrayList;
import java.util.List;
import tr.gov.turkiye.esignuidesk.props.ScreenProperties;
import java.security.cert.X509Certificate;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package tr.gov.turkiye.esignuidesk.data;


/**
 * Holds user data during runtime.
 * 
 * @author iakpolat
 */
public class UserData {
    /**
     * User certificates in card
     */
    public static List<X509Certificate> certs = new ArrayList<>();
    /**
     * Selected card type
     */
    public static String slcCardType = null;
    /**
     * Selected certificate index
     */
    public static int slcCertIndex = 0;
    /**
     * Pin password
     */
    public static char[] pinPass;
    /**
     * User agreement data different to each user since it contains time.
     */
    public static String userAgreement = ScreenProperties.getValue("data_to_be_signed");