Java Reference
In-Depth Information
F
IGURE
10.3
In a restricted environment, when trying to use services such as printing, the JNLP Client asks for authorization from
the user.
In Listing 10.8, the class
SecurityTester
is shown, minus its lengthy graphic
constructor. For the full listing, please see the companion Web site. We will see
how runtime services can be used in Chapter 11.
L
ISTING
10.8
The
SecurityTester
Java Class
package com.marinilli.b2.c10;
import com.marinilli.b2.c11.util.*;
import javax.swing.*;
import java.awt.event.*;
import javax.jnlp.*;
import java.net.*;
import java.io.*;
import java.util.Iterator;
import java.awt.*;
import java.awt.print.*;
/**
* Chapter 10 - JNLP Security - Try it Out Yourself
* @author Mauro Marinilli
* @version 1.0
*/
10