Package it.ipzs.cieid
Class MainFrame
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
it.ipzs.cieid.MainFrame
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Accessible
,RootPaneContainer
,WindowConstants
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
private static enum
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.Type
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JPanel
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private JButton
private final ButtonGroup
private final ButtonGroup
private JButton
static final int
static final int
private String
private CardLayout
private JCheckBox
private JCheckBox
private JCheckBox
private JCheckBox
private JCheckBox
private JCheckBox
private JCheckBox
private JCheckBox
private JCheckBox
private carousel
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private String
private String
private JPanel
private JLabel
private JLabel
private JLabel
static final int
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JTextArea
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JTextArea
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JTextArea
private JLabel
private JTextArea
private JTextArea
private JTextArea
private JTextArea
private JTextArea
private JLabel
private JLabel
private JTextArea
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private JLabel
private static final String
private static final String
private MainFrame.LogLevelConfig
private Logger
private MiniWebView
private MiniWebView
private JPasswordField
private JPasswordField
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPanel
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField
private JPasswordField[]
private JPasswordField[]
private JPanel
private JPasswordField
private JPasswordField
private JPanel
private JPanel
private JPanel
private JPanel
(package private) PdfPreview
private JProgressBar
private JProgressBar
private JProgressBar
private JProgressBar
private JPasswordField
private JRadioButton
private JRadioButton
private JRadioButton
private JRadioButton
private JRadioButton
private JRadioButton
private JRadioButton
private JRadioButton
private JPasswordField
private JPanel
private JPanel
private JPanel
private String
private boolean
private String
protected MainFrame.SignOp
private JTabbedPane
private JTextPane
private JTextPane
private JPasswordField
private JTextPane
private JTextPane
private JTextPane
private JTextPane
private JTextPane
private JTextField
private JTextField
private JTextArea
private JTextArea
private JTextField
private JScrollPane
private Component
private Component
private Component
private Component
private Component
private Component
private Component
private Component
private Component
private Component
Fields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabled
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
chooseSignOrVerifyFileOperation
(String filePath) private void
private void
configureHomeButtons
(Map<String, Cie> cieDictionary) private void
private void
private void
private void
private String
getFileExtension
(String name) private CieCard
private String
getSignImagePath
(String serialNumber) void
Loggerstatic void
Launch the application.private void
pairCIE()
private void
pairCIEMWCall
(String PIN) private void
removeAllCIE
(List<Cie> cieList) private void
private void
private void
selectButton
(JButton button) private void
private void
private void
private void
setConfigurationPaneControlsState
(boolean value) private void
private void
private void
signMWCall
(String outFilePath, String pinfin, Cie selectedCIE) private String
toFirstCharUpperAll
(String string) private String
toTitleCase
(String input) private void
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
Field Details
-
logger
-
logConfig
-
LOG_CONFIG_PREFIX_APP
- See Also:
-
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
-
cardLayout
-
tabbedPane
-
btnHome
-
btnChangePIN
-
btnUnlockCard
-
btnTutorial
-
btnHelp
-
btnInformation
-
passwordField
-
passwordField_1
-
passwordField_2
-
passwordField_3
-
passwordField_4
-
passwordField_5
-
passwordField_6
-
passwordField_7
-
passwordFields
-
passwordSignFields
-
panel_PairCIE
-
label
-
textPane_1
-
label_1
-
checkBox
-
pnCIEHomeSelector_Index_3
-
lblCieId
-
txtpnCIEPanelsSubtitle
-
label_4
-
checkBox_1
-
buttonRemove
-
lblCardNumber
-
labelSerial
-
labelCardholder
-
btnPair
-
serialNumber
-
cardHolder
-
ef_seriale
-
progressBar
-
lblProgress
-
pnChangePINTypingScreen_Index_4
-
lblChangePIN
-
txtpnThePINOfYourCard
-
label_5
-
checkBox_2
-
lblTypeTheOldValue
-
lblTypeTheNewValue
-
lblTypeAgainTheNewValue
-
oldPIN
-
newPIN
-
repeatNewPIN
-
btnPerformChangePIN
-
panel_5
-
lblChangePINText
-
txtpnThePINOfYourCIE
-
label_6
-
lblUnlockCard1
-
checkBox_3
-
labelProgressChangePIN
-
progressBarChangePIN
-
panel_6
-
txtpnUseYourPUK
-
label_7
-
checkBox_4
-
btnUnlockPIN
-
lblInsertYourPUK
-
label_9
-
pin01
-
label_10
-
pin02
-
textPane_2
-
puk01
-
panel_7
-
lblUnlockCard2
-
txtpnTypeThePUKOfYourCIE
-
label_8
-
checkBox_5
-
labelProgressUnlock
-
progressBarUnlock
-
panel_8
-
lblHelp
-
panel_9
-
label_11
-
miniWebView
-
panel_10
-
lblInformation
-
miniWebView_1
-
btnPanel
-
btnRemoveAll
-
btnRemoveSelected
-
btnNewButton
-
btnCancel
-
cieCarousel
-
cieDictionary
-
btnDigitalSignature
-
filePath
-
selectFile
-
lblDigitalSignature
-
panelLoadFile
-
lblNewLabel
-
txtrDragAndDropDocuments
-
txtrOtherwise
-
btnSelectDocument
-
panel_11
-
lblSFP
-
lblCustomize
-
lblNewLabel_2
-
selectOperation
-
lblFirmaElettronica_1
-
panel
-
lblNewLabel_1
-
lblPathOp
-
panel_12
-
lblNewLabel_3
-
lblNewLabel_4
-
lblNewLabel_5
-
lblNewLabel_6
-
btnCancelOp
-
panel_13
-
panel_14
-
selectSignatureOperation
-
lblFirmaElettronica_2
-
panel_15
-
lblNewLabel_7
-
lblPathSignOp
-
imgP7m
-
lblCadesTitle
-
lblCadesSub
-
panel_18
-
panel_19
-
imgPdf
-
lblPadesTitle
-
lblPadesSub
-
panel_20
-
cbGraphicSig
-
pdfPreview
-
lblFirmaElettronica_3
-
panel_21
-
lblNewLabel_9
-
lblPathPreview
-
lblNewLabel_10
-
btnAnnullaOp_3
-
panelPdfPreview
-
panel_23
-
panel_24
-
panel_25
-
btnUp
-
btnDown
-
panel_22
-
signOperation
-
panel_16
-
firmaPin
-
lblFirmaElettronica_4
-
panel_26
-
panel_27
-
lblNewLabel_11
-
lblPathPin
-
btnUndoPINTyping
-
lblNewLabel_12
-
btnSignInPINTypingScreen
-
panel_28
-
lblNewLabel1_1
-
lblProgressSignPIN
-
passwordField_8
-
passwordField_9
-
passwordField_10
-
passwordField_11
-
passwordField_12
-
passwordField_13
-
passwordField_14
-
passwordField_15
-
lblSignatureResult
-
imgSignatureResult
-
panel_29
-
customizeGraphicSignature
-
lblFirmaElettronica_5
-
btnAnnullaOp_6
-
panel_31
-
progressSignPIN
-
btnSignCompleted
-
preview
PdfPreview preview -
btnSelectCIE
-
btnSignWithoutPairing
-
lblCustomizedGraphicSignature
-
lblHint
-
lblFPOK
-
pnVerify
-
lblFirmaElettronica_6
-
verifyScrollPane
-
panel_32
-
btnConcludiVerifica
-
lblPathVerifica
-
btnProseguiOp
-
btnGenerateGraphicSignature
-
pnSettings
-
lblConfigProxyTitle
-
configProxyBodyPanel
-
btnSave
-
lblConfigProxyCaption
-
txtProxyAddr
-
txtUsername
-
txtPassword
-
txtPort
-
btnSettings
-
btnChangeProxy
-
chckbxShowPassword
-
btnExtractP7M
-
configButtonsPanel
-
verticalGlue
-
verticalGlue_1
-
verticalGlue_2
-
verticalGlue_3
-
verticalGlue_4
-
verticalGlue_5
-
verticalGlue_6
-
verticalGlue_7
-
verticalGlue_8
-
verticalGlue_9
-
panelConfigLoggingApp
-
panelConfigLoggingLib
-
rdbtnLoggingAppNone
-
rdbtnLoggingAppError
-
rdbtnLoggingAppInfo
-
rdbtnLoggingAppDebug
-
rdbtnLoggingLibError
-
rdbtnLoggingLibInfo
-
rdbtnLoggingLibDebug
-
rdbtnLoggingLibNone
-
buttonGroupLoggingApp
-
buttonGroupLoggingLib
-
btnDigitalSignatureVerify
-
shouldSignWithoutPairing
private boolean shouldSignWithoutPairing -
signingCIEPAN
-
configPreferencesPanel
-
lblConfigPreferencesTitle
-
lblConfigPreferencesCaption
-
lblConfigPreferencesCaption_1
-
cboxShowTutorial
-
btnDeleteLogs
-
btnCollectLogs
-
-
Constructor Details
-
MainFrame
Create the frame.
-
-
Method Details
-
main
Launch the application. -
collectLogs
private void collectLogs() -
deleteLogs
private void deleteLogs() -
chooseSignOrVerifyFileOperation
-
enableConfigurationPaneControls
private void enableConfigurationPaneControls() -
disableConfigurationPaneControls
private void disableConfigurationPaneControls() -
setConfigurationPaneControlsState
private void setConfigurationPaneControlsState(boolean value) -
selectButton
-
getSelectedCIE
-
getSignImagePath
-
getFileExtension
-
drawText
-
sign
-
signMWCall
-
showSigningPINInputFields
private void showSigningPINInputFields() -
pairCIE
private void pairCIE() -
pairCIEMWCall
-
changePIN
private void changePIN() -
unlockPIN
private void unlockPIN() -
removeCIE
-
removeAllCIE
-
configureHomeButtons
-
selectHome
private void selectHome() -
toTitleCase
-
toFirstCharUpperAll
-
selectCardholder
private void selectCardholder() -
selectUnlock
private void selectUnlock() -
loadLogConfigFromFile
public void loadLogConfigFromFile()Logger -
saveLogConfigToFile
private void saveLogConfigToFile()
-