Class SecurityDialog

java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.SecurityDialog

public class SecurityDialog extends Object
Provides methods for showing security warning dialogs for a wide range of JNLP security issues. Note that the security dialogs should be running in the secure AppContext - this class should not be used directly from an applet or application. See SecurityDialogs for a way to show security dialogs.
  • Field Details

    • LOG

      private static final Logger LOG
    • dialogType

      private final SecurityDialogs.DialogType dialogType
      The type of dialog we want to show
    • accessType

      private final AccessType accessType
      The type of access that this dialog is for
    • panel

      private SecurityDialogPanel panel
    • file

      private final JNLPFile file
      The application file associated with this security warning
    • certVerifier

      private final CertVerifier certVerifier
    • cert

      private final X509Certificate cert
    • extras

      private final Object[] extras
      An optional String array that's only necessary when a dialog label requires some parameters (e.g. showing which address an application is trying to connect to).
    • initialized

      private boolean initialized
      Whether or not this object has been fully initialized
    • value

      private DialogResult value
    • viwableDialog

      private ViwableDialog viwableDialog
    • requiresSignedJNLPWarning

      private boolean requiresSignedJNLPWarning
      Should show signed JNLP file warning
  • Constructor Details

  • Method Details

    • isInitialized

      public boolean isInitialized()
      Returns if this dialog has been fully initialized yet.
      Returns:
      true if this dialog has been initialized, and false otherwise.
    • showMoreInfoDialog

      public static void showMoreInfoDialog(CertVerifier certVerifier, SecurityDialog parent)
      Shows more information regarding jar code signing
      Parameters:
      certVerifier - the JarCertVerifier used to verify this application
      parent - the parent NumberOfArguments pane
    • showCertInfoDialog

      public static void showCertInfoDialog(CertVerifier certVerifier, Component parent)
      Displays CertPath information in a readable table format.
      Parameters:
      certVerifier - the JarCertVerifier used to verify this application
      parent - the parent NumberOfArguments pane
    • showSingleCertInfoDialog

      public static void showSingleCertInfoDialog(X509Certificate c, Window parent)
      Displays a single certificate's information.
      Parameters:
      c - the X509 certificate.
      parent - the parent pane.
    • initDialog

      private void initDialog()
    • createTitle

      private String createTitle()
    • createTitle

      private static String createTitle(SecurityDialogs.DialogType dtype, AccessType atype)
    • getAccessType

      public AccessType getAccessType()
    • getFile

      public JNLPFile getFile()
    • getCertVerifier

      public CertVerifier getCertVerifier()
    • getCert

      public X509Certificate getCert()
    • getPanel

      private SecurityDialogPanel getPanel()
    • getPanel

      static SecurityDialogPanel getPanel(SecurityDialog sd)
    • getPanel

    • installPanel

      private void installPanel()
    • selectDefaultButton

      private void selectDefaultButton()
    • setValue

      public void setValue(DialogResult value)
    • getValue

      public DialogResult getValue()
    • requiresSignedJNLPWarning

      public boolean requiresSignedJNLPWarning()
    • getDefaultNegativeAnswer

      DialogResult getDefaultNegativeAnswer()
    • getDefaultPositiveAnswer

      DialogResult getDefaultPositiveAnswer()
    • getText

      String getText()
    • readFromStdIn

      DialogResult readFromStdIn(String what)
    • helpToStdIn

      String helpToStdIn()
    • getViwableDialog

      public ViwableDialog getViwableDialog()
    • getSecurityDialogPanel

      public SecurityDialogPanel getSecurityDialogPanel()