public class SecurityDialogs
extends java.lang.Object
A factory for showing many possible types of security warning to the user.
This contains all the public methods that classes outside this package should
use instead of using SecurityDialog
directly.
All of these methods post a message to the
SecurityDialogMessageHandler
and block waiting for a response.
Modifier and Type | Class and Description |
---|---|
static class |
SecurityDialogs.AccessType
The types of access which may need user permission.
|
static class |
SecurityDialogs.DialogType
Types of dialogs we can create
|
Constructor and Description |
---|
SecurityDialogs() |
Modifier and Type | Method and Description |
---|---|
static boolean |
show511Dialogue(Resource r) |
static net.sourceforge.jnlp.security.dialogresults.AccessWarningPaneComplexReturn |
showAccessWarningDialog(SecurityDialogs.AccessType accessType,
JNLPFile file,
java.lang.Object[] extras)
Shows a warning dialog for different types of system access (i.e.
|
static net.sourceforge.jnlp.security.dialogresults.NamePassword |
showAuthenicationPrompt(java.lang.String host,
int port,
java.lang.String prompt,
java.lang.String type)
Present a dialog to the user asking them for authentication information,
and returns the user's response.
|
static net.sourceforge.jnlp.security.dialogresults.YesNoSandbox |
showCertWarningDialog(SecurityDialogs.AccessType accessType,
JNLPFile file,
CertVerifier certVerifier,
JNLPClassLoader.SecurityDelegate securityDelegate)
Shows a security warning dialog according to the specified type of
access.
|
static boolean |
showMatchingALACAttributePanel(JNLPFile file,
java.net.URL documentBase,
java.util.Set<java.net.URL> remoteUrls) |
static boolean |
showMissingALACAttributePanel(JNLPFile file,
java.net.URL codeBase,
java.util.Set<java.net.URL> remoteUrls) |
static boolean |
showMissingPermissionsAttributeDialogue(JNLPFile file) |
static net.sourceforge.jnlp.security.dialogresults.YesNoSandbox |
showPartiallySignedWarningDialog(JNLPFile file,
CertVerifier certVerifier,
JNLPClassLoader.SecurityDelegate securityDelegate)
Shows a warning dialog for when an applet or application is partially
signed.
|
static net.sourceforge.jnlp.security.dialogresults.YesNoSandboxLimited |
showUnsignedWarningDialog(JNLPFile file)
Shows a warning dialog for when a plugin applet is unsigned.
|
public static net.sourceforge.jnlp.security.dialogresults.AccessWarningPaneComplexReturn showAccessWarningDialog(SecurityDialogs.AccessType accessType, JNLPFile file, java.lang.Object[] extras)
accessType
- the type of system access requested.file
- the jnlp file associated with the requesting application.extras
- array of objects used as extra.toString or similarly laterpublic static net.sourceforge.jnlp.security.dialogresults.YesNoSandboxLimited showUnsignedWarningDialog(JNLPFile file)
file
- the file to be base as information source for this dialoguepublic static net.sourceforge.jnlp.security.dialogresults.YesNoSandbox showCertWarningDialog(SecurityDialogs.AccessType accessType, JNLPFile file, CertVerifier certVerifier, JNLPClassLoader.SecurityDelegate securityDelegate)
accessType
is one of SecurityDialogs.AccessType.VERIFIED
or
SecurityDialogs.AccessType.UNVERIFIED
, extra details will be available with
regards to code signing and signing certificates.accessType
- the type of warning dialog to showfile
- the JNLPFile associated with this warningcertVerifier
- the JarCertVerifier used to verify this applicationsecurityDelegate
- the delegate for security atts.public static net.sourceforge.jnlp.security.dialogresults.YesNoSandbox showPartiallySignedWarningDialog(JNLPFile file, CertVerifier certVerifier, JNLPClassLoader.SecurityDelegate securityDelegate)
file
- the JNLPFile associated with this warningcertVerifier
- the JarCertVerifier used to verify this applicationsecurityDelegate
- the delegate for security atts.public static net.sourceforge.jnlp.security.dialogresults.NamePassword showAuthenicationPrompt(java.lang.String host, int port, java.lang.String prompt, java.lang.String type)
host
- The host for with authentication is neededport
- The port being accessedprompt
- The prompt (realm) as presented by the servertype
- The type of server (proxy/web)java.lang.SecurityException
- if the caller does not have the appropriate
permissions.public static boolean showMissingALACAttributePanel(JNLPFile file, java.net.URL codeBase, java.util.Set<java.net.URL> remoteUrls)
public static boolean showMatchingALACAttributePanel(JNLPFile file, java.net.URL documentBase, java.util.Set<java.net.URL> remoteUrls)
public static boolean showMissingPermissionsAttributeDialogue(JNLPFile file)
public static boolean show511Dialogue(Resource r)