blob: c958ffff223b5ab2f58f6dde08c9406ef86328c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
package net.sourceforge.jnlp.security;
import java.security.cert.X509Certificate;
import java.util.concurrent.Semaphore;
import javax.swing.JDialog;
import net.sourceforge.jnlp.JNLPFile;
import net.sourceforge.jnlp.security.SecurityWarning.AccessType;
import net.sourceforge.jnlp.security.SecurityWarning.DialogType;
/**
* Represents a message to the security framework to show a specific security
* dialog
*/
final class SecurityDialogMessage {
/*
* These fields contain information need to display the correct dialog type
*/
public DialogType dialogType;
public AccessType accessType;
public JNLPFile file;
public CertVerifier certVerifier;
public X509Certificate certificate;
public Object[] extras;
/*
* Volatile because this is shared between threads and we dont want threads
* to use a cached value of this.
*/
public volatile Object userResponse;
/*
* These two fields are used to block/unblock the application or the applet.
* If either of them is not null, call release() or dispose() on it to allow
* the application/applet to continue.
*/
public Semaphore lock;
public JDialog toDispose;
}
|