Class CertWarningPane
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.SecurityDialogPanel
-
- net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.CertWarningPane
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible
public class CertWarningPane extends SecurityDialogPanel
Provides the panel for using inside a SecurityDialog. These dialogs are used to warn the user when either signed code (with or without signing issues) is going to be run, or when service permission (file, clipboard, printer, etc) is needed with unsigned code.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classCertWarningPane.ButtonDisableListenerDisable the Sandbox button when the AlwaysTrust checkbox is checkedprivate classCertWarningPane.CheckBoxListenerUpdates the user's KeyStore of trusted Certificates.private classCertWarningPane.MoreInfoButtonListener-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description private AccessTypeaccessTypeprivate javax.swing.JButtonadvancedOptionsprivate javax.swing.JCheckBoxalwaysTrustprivate booleanalwaysTrustSelectedprivate javax.swing.JLabelbottomLabelprivate java.lang.StringbottomLabelWarningTextprivate javax.swing.JPanelbottomPanelprivate javax.swing.JPanelbuttonPanelprivate javax.swing.JButtoncancelprivate java.security.cert.Certificatecertprivate CertVerifiercertVerifierprivate JNLPFilefileprivate javax.swing.JLabelfromLabelprivate javax.swing.JPanelinfoPanelprivate static LoggerLOGprivate javax.swing.JButtonmoreInfoprivate javax.swing.JLabelnameLabelprivate javax.swing.JLabelpublisherLabelprivate javax.swing.JButtonrunprivate javax.swing.JButtonsandboxprivate SecurityDelegatesecurityDelegateprivate javax.swing.JLabeltopLabelprivate javax.swing.JPaneltopPanel-
Fields inherited from class net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.SecurityDialogPanel
initialFocusComponent, parent
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description CertWarningPane(SecurityDialog x, CertVerifier certVerifier, SecurityDelegate securityDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddButtons()private voidaddComponents()Creates the actual GUI components, and adds it to this panelDialogResultgetDefaultNegativeAnswer()DialogResultgetDefaultPositiveAnswer()private javax.swing.ImageIcongetImageIcon(java.lang.String imageLocation)java.lang.StringhelpToStdIn()DialogResultreadFromStdIn(java.lang.String what)voidsaveCert()private voidsetTextAndLabels()-
Methods inherited from class net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.SecurityDialogPanel
getText, htmlWrap, requestFocusOnDefaultButton, setVisible
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
file
private final JNLPFile file
-
accessType
private final AccessType accessType
-
cert
private final java.security.cert.Certificate cert
-
alwaysTrust
private javax.swing.JCheckBox alwaysTrust
-
certVerifier
private final CertVerifier certVerifier
-
securityDelegate
private final SecurityDelegate securityDelegate
-
topPanel
private javax.swing.JPanel topPanel
-
infoPanel
private javax.swing.JPanel infoPanel
-
buttonPanel
private javax.swing.JPanel buttonPanel
-
bottomPanel
private javax.swing.JPanel bottomPanel
-
topLabel
private javax.swing.JLabel topLabel
-
nameLabel
private javax.swing.JLabel nameLabel
-
publisherLabel
private javax.swing.JLabel publisherLabel
-
fromLabel
private javax.swing.JLabel fromLabel
-
bottomLabel
private javax.swing.JLabel bottomLabel
-
run
private javax.swing.JButton run
-
sandbox
private javax.swing.JButton sandbox
-
advancedOptions
private javax.swing.JButton advancedOptions
-
cancel
private javax.swing.JButton cancel
-
moreInfo
private javax.swing.JButton moreInfo
-
alwaysTrustSelected
private boolean alwaysTrustSelected
-
bottomLabelWarningText
private java.lang.String bottomLabelWarningText
-
-
Constructor Detail
-
CertWarningPane
public CertWarningPane(SecurityDialog x, CertVerifier certVerifier, SecurityDelegate securityDelegate)
-
-
Method Detail
-
addComponents
private void addComponents()
Creates the actual GUI components, and adds it to this panel
-
setTextAndLabels
private void setTextAndLabels()
-
getImageIcon
private javax.swing.ImageIcon getImageIcon(java.lang.String imageLocation)
-
addButtons
private void addButtons()
-
saveCert
public void saveCert()
-
getDefaultNegativeAnswer
public DialogResult getDefaultNegativeAnswer()
- Specified by:
getDefaultNegativeAnswerin classSecurityDialogPanel
-
getDefaultPositiveAnswer
public DialogResult getDefaultPositiveAnswer()
- Specified by:
getDefaultPositiveAnswerin classSecurityDialogPanel
-
readFromStdIn
public DialogResult readFromStdIn(java.lang.String what)
- Specified by:
readFromStdInin classSecurityDialogPanel
-
helpToStdIn
public java.lang.String helpToStdIn()
- Specified by:
helpToStdInin classSecurityDialogPanel
-
-