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 TypeClassDescriptionclassprivate static enumNested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrameNested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrameNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JPanelprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate JButtonprivate final ButtonGroupprivate final ButtonGroupprivate JButtonstatic final intstatic final intprivate Stringprivate CardLayoutprivate JCheckBoxprivate JCheckBoxprivate JCheckBoxprivate JCheckBoxprivate JCheckBoxprivate JCheckBoxprivate JCheckBoxprivate JCheckBoxprivate JCheckBoxprivate carouselstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate Stringprivate Stringprivate JPanelprivate JLabelprivate JLabelprivate JLabelstatic final intprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JTextAreaprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JTextAreaprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JTextAreaprivate JLabelprivate JTextAreaprivate JTextAreaprivate JTextAreaprivate JTextAreaprivate JTextAreaprivate JLabelprivate JLabelprivate JTextAreaprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate JLabelprivate static final Stringprivate static final Stringprivate MainFrame.LogLevelConfigprivate Loggerprivate MiniWebViewprivate MiniWebViewprivate JPasswordFieldprivate JPasswordFieldprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPanelprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordFieldprivate JPasswordField[]private JPasswordField[]private JPanelprivate JPasswordFieldprivate JPasswordFieldprivate JPanelprivate JPanelprivate JPanelprivate JPanel(package private) PdfPreviewprivate JProgressBarprivate JProgressBarprivate JProgressBarprivate JProgressBarprivate JPasswordFieldprivate JRadioButtonprivate JRadioButtonprivate JRadioButtonprivate JRadioButtonprivate JRadioButtonprivate JRadioButtonprivate JRadioButtonprivate JRadioButtonprivate JPasswordFieldprivate JPanelprivate JPanelprivate JPanelprivate Stringprivate booleanprivate Stringprotected MainFrame.SignOpprivate JTabbedPaneprivate JTextPaneprivate JTextPaneprivate JPasswordFieldprivate JTextPaneprivate JTextPaneprivate JTextPaneprivate JTextPaneprivate JTextPaneprivate JTextFieldprivate JTextFieldprivate JTextAreaprivate JTextAreaprivate JTextFieldprivate JScrollPaneprivate Componentprivate Componentprivate Componentprivate Componentprivate Componentprivate Componentprivate Componentprivate Componentprivate Componentprivate ComponentFields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabledFields 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_CURSORFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields 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 voidprivate voidchooseSignOrVerifyFileOperation(String filePath) private voidprivate voidconfigureHomeButtons(Map<String, Cie> cieDictionary) private voidprivate voidprivate voidprivate voidprivate StringgetFileExtension(String name) private CieCardprivate StringgetSignImagePath(String serialNumber) voidLoggerstatic voidLaunch the application.private voidpairCIE()private voidpairCIEMWCall(String PIN) private voidremoveAllCIE(List<Cie> cieList) private voidprivate voidprivate voidselectButton(JButton button) private voidprivate voidprivate voidprivate voidsetConfigurationPaneControlsState(boolean value) private voidprivate voidprivate voidsignMWCall(String outFilePath, String pinfin, Cie selectedCIE) private StringtoFirstCharUpperAll(String string) private StringtoTitleCase(String input) private voidMethods 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, updateMethods 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, setUndecoratedMethods 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, toFrontMethods 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, validateTreeMethods 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, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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()
-