27
28
29 import java.net.URL;
30 import java.net.SocketPermission;
31 import java.util.ArrayList;
32 import java.util.List;
33 import java.util.Hashtable;
34 import java.io.ByteArrayInputStream;
35 import java.io.IOException;
36 import java.security.cert.*;
37 import sun.net.util.URLUtil;
38
39 /**
40 *
41 * <p>This class extends the concept of a codebase to
42 * encapsulate not only the location (URL) but also the certificate chains
43 * that were used to verify signed code originating from that location.
44 *
45 * @author Li Gong
46 * @author Roland Schemers
47 */
48
49 public class CodeSource implements java.io.Serializable {
50
51 private static final long serialVersionUID = 4977541819976013951L;
52
53 /**
54 * The code location.
55 *
56 * @serial
57 */
58 private URL location;
59
60 /*
61 * The code signers.
62 */
63 private transient CodeSigner[] signers = null;
64
65 /*
66 * The code signers. Certificate chains are concatenated.
|
27
28
29 import java.net.URL;
30 import java.net.SocketPermission;
31 import java.util.ArrayList;
32 import java.util.List;
33 import java.util.Hashtable;
34 import java.io.ByteArrayInputStream;
35 import java.io.IOException;
36 import java.security.cert.*;
37 import sun.net.util.URLUtil;
38
39 /**
40 *
41 * <p>This class extends the concept of a codebase to
42 * encapsulate not only the location (URL) but also the certificate chains
43 * that were used to verify signed code originating from that location.
44 *
45 * @author Li Gong
46 * @author Roland Schemers
47 * @since 1.2
48 */
49
50 public class CodeSource implements java.io.Serializable {
51
52 private static final long serialVersionUID = 4977541819976013951L;
53
54 /**
55 * The code location.
56 *
57 * @serial
58 */
59 private URL location;
60
61 /*
62 * The code signers.
63 */
64 private transient CodeSigner[] signers = null;
65
66 /*
67 * The code signers. Certificate chains are concatenated.
|