Package it.ipzs.cieid

Class MainFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class MainFrame extends JFrame
See Also:
  • Field Details

    • logger

      private Logger logger
    • logConfig

      private MainFrame.LogLevelConfig logConfig
    • LOG_CONFIG_PREFIX_APP

      private static final String LOG_CONFIG_PREFIX_APP
      See Also:
    • LOG_CONFIG_PREFIX_LIB

      private static final String LOG_CONFIG_PREFIX_LIB
      See Also:
    • CKR_OK

      public static final int CKR_OK
      See Also:
    • CKR_CANCEL

      public static final int CKR_CANCEL
      See Also:
    • CKR_TOKEN_NOT_PRESENT

      public static final int CKR_TOKEN_NOT_PRESENT
      See Also:
    • CKR_TOKEN_NOT_RECOGNIZED

      public static final int CKR_TOKEN_NOT_RECOGNIZED
      See Also:
    • CKR_DEVICE_ERROR

      public static final int CKR_DEVICE_ERROR
      See Also:
    • CKR_GENERAL_ERROR

      public static final int CKR_GENERAL_ERROR
      See Also:
    • CKR_PIN_INCORRECT

      public static final int CKR_PIN_INCORRECT
      See Also:
    • CKR_PIN_INVALID

      public static final int CKR_PIN_INVALID
      See Also:
    • CKR_PIN_LEN_RANGE

      public static final int CKR_PIN_LEN_RANGE
      See Also:
    • CARD_ALREADY_ENABLED

      public static final int CARD_ALREADY_ENABLED
      See Also:
    • CARD_PAN_MISMATCH

      public static final int CARD_PAN_MISMATCH
      See Also:
    • INVALID_FILE_TYPE

      public static final int INVALID_FILE_TYPE
      See Also:
    • CKR_PIN_EXPIRED

      public static final int CKR_PIN_EXPIRED
      See Also:
    • CKR_PIN_LOCKED

      public static final int CKR_PIN_LOCKED
      See Also:
    • contentPane

      private JPanel contentPane
    • cardLayout

      private CardLayout cardLayout
    • tabbedPane

      private JTabbedPane tabbedPane
    • btnHome

      private JButton btnHome
    • btnChangePIN

      private JButton btnChangePIN
    • btnUnlockCard

      private JButton btnUnlockCard
    • btnTutorial

      private JButton btnTutorial
    • btnHelp

      private JButton btnHelp
    • btnInformation

      private JButton btnInformation
    • passwordField

      private JPasswordField passwordField
    • passwordField_1

      private JPasswordField passwordField_1
    • passwordField_2

      private JPasswordField passwordField_2
    • passwordField_3

      private JPasswordField passwordField_3
    • passwordField_4

      private JPasswordField passwordField_4
    • passwordField_5

      private JPasswordField passwordField_5
    • passwordField_6

      private JPasswordField passwordField_6
    • passwordField_7

      private JPasswordField passwordField_7
    • passwordFields

      private JPasswordField[] passwordFields
    • passwordSignFields

      private JPasswordField[] passwordSignFields
    • panel_PairCIE

      private JPanel panel_PairCIE
    • label

      private JLabel label
    • textPane_1

      private JTextPane textPane_1
    • label_1

      private JLabel label_1
    • checkBox

      private JCheckBox checkBox
    • pnCIEHomeSelector_Index_3

      private JPanel pnCIEHomeSelector_Index_3
    • lblCieId

      private JLabel lblCieId
    • txtpnCIEPanelsSubtitle

      private JTextPane txtpnCIEPanelsSubtitle
    • label_4

      private JLabel label_4
    • checkBox_1

      private JCheckBox checkBox_1
    • buttonRemove

      private JButton buttonRemove
    • lblCardNumber

      private JLabel lblCardNumber
    • labelSerial

      private JLabel labelSerial
    • labelCardholder

      private JLabel labelCardholder
    • btnPair

      private JButton btnPair
    • serialNumber

      private String serialNumber
    • cardHolder

      private String cardHolder
    • ef_seriale

      private String ef_seriale
    • progressBar

      private JProgressBar progressBar
    • lblProgress

      private JLabel lblProgress
    • pnChangePINTypingScreen_Index_4

      private JPanel pnChangePINTypingScreen_Index_4
    • lblChangePIN

      private JLabel lblChangePIN
    • txtpnThePINOfYourCard

      private JTextPane txtpnThePINOfYourCard
    • label_5

      private JLabel label_5
    • checkBox_2

      private JCheckBox checkBox_2
    • lblTypeTheOldValue

      private JLabel lblTypeTheOldValue
    • lblTypeTheNewValue

      private JLabel lblTypeTheNewValue
    • lblTypeAgainTheNewValue

      private JLabel lblTypeAgainTheNewValue
    • oldPIN

      private JPasswordField oldPIN
    • newPIN

      private JPasswordField newPIN
    • repeatNewPIN

      private JPasswordField repeatNewPIN
    • btnPerformChangePIN

      private JButton btnPerformChangePIN
    • panel_5

      private JPanel panel_5
    • lblChangePINText

      private JLabel lblChangePINText
    • txtpnThePINOfYourCIE

      private JTextPane txtpnThePINOfYourCIE
    • label_6

      private JLabel label_6
    • lblUnlockCard1

      private JLabel lblUnlockCard1
    • checkBox_3

      private JCheckBox checkBox_3
    • labelProgressChangePIN

      private JLabel labelProgressChangePIN
    • progressBarChangePIN

      private JProgressBar progressBarChangePIN
    • panel_6

      private JPanel panel_6
    • txtpnUseYourPUK

      private JTextPane txtpnUseYourPUK
    • label_7

      private JLabel label_7
    • checkBox_4

      private JCheckBox checkBox_4
    • btnUnlockPIN

      private JButton btnUnlockPIN
    • lblInsertYourPUK

      private JLabel lblInsertYourPUK
    • label_9

      private JLabel label_9
    • pin01

      private JPasswordField pin01
    • label_10

      private JLabel label_10
    • pin02

      private JPasswordField pin02
    • textPane_2

      private JTextPane textPane_2
    • puk01

      private JPasswordField puk01
    • panel_7

      private JPanel panel_7
    • lblUnlockCard2

      private JLabel lblUnlockCard2
    • txtpnTypeThePUKOfYourCIE

      private JTextPane txtpnTypeThePUKOfYourCIE
    • label_8

      private JLabel label_8
    • checkBox_5

      private JCheckBox checkBox_5
    • labelProgressUnlock

      private JLabel labelProgressUnlock
    • progressBarUnlock

      private JProgressBar progressBarUnlock
    • panel_8

      private JPanel panel_8
    • lblHelp

      private JLabel lblHelp
    • panel_9

      private JPanel panel_9
    • label_11

      private JLabel label_11
    • miniWebView

      private MiniWebView miniWebView
    • panel_10

      private JPanel panel_10
    • lblInformation

      private JLabel lblInformation
    • miniWebView_1

      private MiniWebView miniWebView_1
    • btnPanel

      private JPanel btnPanel
    • btnRemoveAll

      private JButton btnRemoveAll
    • btnRemoveSelected

      private JButton btnRemoveSelected
    • btnNewButton

      private JButton btnNewButton
    • btnCancel

      private JButton btnCancel
    • cieCarousel

      private carousel cieCarousel
    • cieDictionary

      private Map<String,Cie> cieDictionary
    • btnDigitalSignature

      private JButton btnDigitalSignature
    • filePath

      private String filePath
    • selectFile

      private JPanel selectFile
    • lblDigitalSignature

      private JLabel lblDigitalSignature
    • panelLoadFile

      private JPanel panelLoadFile
    • lblNewLabel

      private JLabel lblNewLabel
    • txtrDragAndDropDocuments

      private JTextArea txtrDragAndDropDocuments
    • txtrOtherwise

      private JTextArea txtrOtherwise
    • btnSelectDocument

      private JButton btnSelectDocument
    • panel_11

      private JPanel panel_11
    • lblSFP

      private JTextArea lblSFP
    • lblCustomize

      private JLabel lblCustomize
    • lblNewLabel_2

      private JLabel lblNewLabel_2
    • selectOperation

      private JPanel selectOperation
    • lblFirmaElettronica_1

      private JLabel lblFirmaElettronica_1
    • panel

      private JPanel panel
    • lblNewLabel_1

      private JLabel lblNewLabel_1
    • lblPathOp

      private JTextArea lblPathOp
    • panel_12

      private JPanel panel_12
    • lblNewLabel_3

      private JLabel lblNewLabel_3
    • lblNewLabel_4

      private JLabel lblNewLabel_4
    • lblNewLabel_5

      private JLabel lblNewLabel_5
    • lblNewLabel_6

      private JLabel lblNewLabel_6
    • btnCancelOp

      private JButton btnCancelOp
    • panel_13

      private JPanel panel_13
    • panel_14

      private JPanel panel_14
    • selectSignatureOperation

      private JPanel selectSignatureOperation
    • lblFirmaElettronica_2

      private JLabel lblFirmaElettronica_2
    • panel_15

      private JPanel panel_15
    • lblNewLabel_7

      private JLabel lblNewLabel_7
    • lblPathSignOp

      private JTextArea lblPathSignOp
    • imgP7m

      private JLabel imgP7m
    • lblCadesTitle

      private JLabel lblCadesTitle
    • lblCadesSub

      private JTextArea lblCadesSub
    • panel_18

      private JPanel panel_18
    • panel_19

      private JPanel panel_19
    • imgPdf

      private JLabel imgPdf
    • lblPadesTitle

      private JLabel lblPadesTitle
    • lblPadesSub

      private JTextArea lblPadesSub
    • panel_20

      private JPanel panel_20
    • cbGraphicSig

      private JCheckBox cbGraphicSig
    • pdfPreview

      private JPanel pdfPreview
    • lblFirmaElettronica_3

      private JLabel lblFirmaElettronica_3
    • panel_21

      private JPanel panel_21
    • lblNewLabel_9

      private JLabel lblNewLabel_9
    • lblPathPreview

      private JTextArea lblPathPreview
    • lblNewLabel_10

      private JLabel lblNewLabel_10
    • btnAnnullaOp_3

      private JButton btnAnnullaOp_3
    • panelPdfPreview

      private JPanel panelPdfPreview
    • panel_23

      private JPanel panel_23
    • panel_24

      private JPanel panel_24
    • panel_25

      private JPanel panel_25
    • btnUp

      private JButton btnUp
    • btnDown

      private JButton btnDown
    • panel_22

      private JPanel panel_22
    • signOperation

      protected MainFrame.SignOp signOperation
    • panel_16

      private JPanel panel_16
    • firmaPin

      private JPanel firmaPin
    • lblFirmaElettronica_4

      private JLabel lblFirmaElettronica_4
    • panel_26

      private JPanel panel_26
    • panel_27

      private JPanel panel_27
    • lblNewLabel_11

      private JLabel lblNewLabel_11
    • lblPathPin

      private JTextArea lblPathPin
    • btnUndoPINTyping

      private JButton btnUndoPINTyping
    • lblNewLabel_12

      private JLabel lblNewLabel_12
    • btnSignInPINTypingScreen

      private JButton btnSignInPINTypingScreen
    • panel_28

      private JPanel panel_28
    • lblNewLabel1_1

      private JLabel lblNewLabel1_1
    • lblProgressSignPIN

      private JLabel lblProgressSignPIN
    • passwordField_8

      private JPasswordField passwordField_8
    • passwordField_9

      private JPasswordField passwordField_9
    • passwordField_10

      private JPasswordField passwordField_10
    • passwordField_11

      private JPasswordField passwordField_11
    • passwordField_12

      private JPasswordField passwordField_12
    • passwordField_13

      private JPasswordField passwordField_13
    • passwordField_14

      private JPasswordField passwordField_14
    • passwordField_15

      private JPasswordField passwordField_15
    • lblSignatureResult

      private JLabel lblSignatureResult
    • imgSignatureResult

      private JLabel imgSignatureResult
    • panel_29

      private JPanel panel_29
    • customizeGraphicSignature

      private JPanel customizeGraphicSignature
    • lblFirmaElettronica_5

      private JLabel lblFirmaElettronica_5
    • btnAnnullaOp_6

      private JButton btnAnnullaOp_6
    • panel_31

      private JPanel panel_31
    • progressSignPIN

      private JProgressBar progressSignPIN
    • btnSignCompleted

      private JButton btnSignCompleted
    • preview

      PdfPreview preview
    • btnSelectCIE

      private JButton btnSelectCIE
    • btnSignWithoutPairing

      private JButton btnSignWithoutPairing
    • lblCustomizedGraphicSignature

      private JLabel lblCustomizedGraphicSignature
    • lblHint

      private JTextArea lblHint
    • lblFPOK

      private JLabel lblFPOK
    • pnVerify

      private JPanel pnVerify
    • lblFirmaElettronica_6

      private JLabel lblFirmaElettronica_6
    • verifyScrollPane

      private JScrollPane verifyScrollPane
    • panel_32

      private JPanel panel_32
    • btnConcludiVerifica

      private JButton btnConcludiVerifica
    • lblPathVerifica

      private JTextArea lblPathVerifica
    • btnProseguiOp

      private JButton btnProseguiOp
    • btnGenerateGraphicSignature

      private JButton btnGenerateGraphicSignature
    • pnSettings

      private JPanel pnSettings
    • lblConfigProxyTitle

      private JLabel lblConfigProxyTitle
    • configProxyBodyPanel

      private JPanel configProxyBodyPanel
    • btnSave

      private JButton btnSave
    • lblConfigProxyCaption

      private JLabel lblConfigProxyCaption
    • txtProxyAddr

      private JTextField txtProxyAddr
    • txtUsername

      private JTextField txtUsername
    • txtPassword

      private JPasswordField txtPassword
    • txtPort

      private JTextField txtPort
    • btnSettings

      private JButton btnSettings
    • btnChangeProxy

      private JButton btnChangeProxy
    • chckbxShowPassword

      private JCheckBox chckbxShowPassword
    • btnExtractP7M

      private JButton btnExtractP7M
    • configButtonsPanel

      private JPanel configButtonsPanel
    • verticalGlue

      private Component verticalGlue
    • verticalGlue_1

      private Component verticalGlue_1
    • verticalGlue_2

      private Component verticalGlue_2
    • verticalGlue_3

      private Component verticalGlue_3
    • verticalGlue_4

      private Component verticalGlue_4
    • verticalGlue_5

      private Component verticalGlue_5
    • verticalGlue_6

      private Component verticalGlue_6
    • verticalGlue_7

      private Component verticalGlue_7
    • verticalGlue_8

      private Component verticalGlue_8
    • verticalGlue_9

      private Component verticalGlue_9
    • panelConfigLoggingApp

      private JPanel panelConfigLoggingApp
    • panelConfigLoggingLib

      private JPanel panelConfigLoggingLib
    • rdbtnLoggingAppNone

      private JRadioButton rdbtnLoggingAppNone
    • rdbtnLoggingAppError

      private JRadioButton rdbtnLoggingAppError
    • rdbtnLoggingAppInfo

      private JRadioButton rdbtnLoggingAppInfo
    • rdbtnLoggingAppDebug

      private JRadioButton rdbtnLoggingAppDebug
    • rdbtnLoggingLibError

      private JRadioButton rdbtnLoggingLibError
    • rdbtnLoggingLibInfo

      private JRadioButton rdbtnLoggingLibInfo
    • rdbtnLoggingLibDebug

      private JRadioButton rdbtnLoggingLibDebug
    • rdbtnLoggingLibNone

      private JRadioButton rdbtnLoggingLibNone
    • buttonGroupLoggingApp

      private final ButtonGroup buttonGroupLoggingApp
    • buttonGroupLoggingLib

      private final ButtonGroup buttonGroupLoggingLib
    • btnDigitalSignatureVerify

      private JButton btnDigitalSignatureVerify
    • shouldSignWithoutPairing

      private boolean shouldSignWithoutPairing
    • signingCIEPAN

      private String signingCIEPAN
    • configPreferencesPanel

      private JPanel configPreferencesPanel
    • lblConfigPreferencesTitle

      private JLabel lblConfigPreferencesTitle
    • lblConfigPreferencesCaption

      private JLabel lblConfigPreferencesCaption
    • lblConfigPreferencesCaption_1

      private JLabel lblConfigPreferencesCaption_1
    • cboxShowTutorial

      private JCheckBox cboxShowTutorial
    • btnDeleteLogs

      private JButton btnDeleteLogs
    • btnCollectLogs

      private JButton btnCollectLogs
  • Constructor Details

    • MainFrame

      public MainFrame(String[] args)
      Create the frame.
  • Method Details

    • main

      public static void main(String[] args)
      Launch the application.
    • collectLogs

      private void collectLogs()
    • deleteLogs

      private void deleteLogs()
    • chooseSignOrVerifyFileOperation

      private void chooseSignOrVerifyFileOperation(String filePath)
    • enableConfigurationPaneControls

      private void enableConfigurationPaneControls()
    • disableConfigurationPaneControls

      private void disableConfigurationPaneControls()
    • setConfigurationPaneControlsState

      private void setConfigurationPaneControlsState(boolean value)
    • selectButton

      private void selectButton(JButton button)
    • getSelectedCIE

      private CieCard getSelectedCIE()
    • getSignImagePath

      private String getSignImagePath(String serialNumber)
    • getFileExtension

      private String getFileExtension(String name)
    • drawText

      private void drawText(String text, String path)
    • sign

      private void sign(String outFilePath)
    • signMWCall

      private void signMWCall(String outFilePath, String pinfin, Cie selectedCIE)
    • showSigningPINInputFields

      private void showSigningPINInputFields()
    • pairCIE

      private void pairCIE()
    • pairCIEMWCall

      private void pairCIEMWCall(String PIN)
    • changePIN

      private void changePIN()
    • unlockPIN

      private void unlockPIN()
    • removeCIE

      private void removeCIE(String pan, String name)
    • removeAllCIE

      private void removeAllCIE(List<Cie> cieList)
    • configureHomeButtons

      private void configureHomeButtons(Map<String,Cie> cieDictionary)
    • selectHome

      private void selectHome()
    • toTitleCase

      private String toTitleCase(String input)
    • toFirstCharUpperAll

      private String toFirstCharUpperAll(String string)
    • selectCardholder

      private void selectCardholder()
    • selectUnlock

      private void selectUnlock()
    • loadLogConfigFromFile

      public void loadLogConfigFromFile()
      Logger
    • saveLogConfigToFile

      private void saveLogConfigToFile()