40 /**
41 *
42 * <p>This class extends the concept of a codebase to
43 * encapsulate not only the location (URL) but also the certificate chains
44 * that were used to verify signed code originating from that location.
45 *
46 * @author Li Gong
47 * @author Roland Schemers
48 * @since 1.2
49 */
50
51 public class CodeSource implements java.io.Serializable {
52
53 private static final long serialVersionUID = 4977541819976013951L;
54
55 /**
56 * The code location.
57 *
58 * @serial
59 */
60 private URL location;
61
62 /*
63 * The code signers.
64 */
65 private transient CodeSigner[] signers = null;
66
67 /*
68 * The code signers. Certificate chains are concatenated.
69 */
70 private transient java.security.cert.Certificate[] certs = null;
71
72 // cached SocketPermission used for matchLocation
73 private transient SocketPermission sp;
74
75 // for generating cert paths
76 private transient CertificateFactory factory = null;
77
78 /**
79 * A String form of the URL for use as a key in HashMaps/Sets. The String
80 * form should be behave in the same manner as the URL when compared for
|
40 /**
41 *
42 * <p>This class extends the concept of a codebase to
43 * encapsulate not only the location (URL) but also the certificate chains
44 * that were used to verify signed code originating from that location.
45 *
46 * @author Li Gong
47 * @author Roland Schemers
48 * @since 1.2
49 */
50
51 public class CodeSource implements java.io.Serializable {
52
53 private static final long serialVersionUID = 4977541819976013951L;
54
55 /**
56 * The code location.
57 *
58 * @serial
59 */
60 private final URL location;
61
62 /*
63 * The code signers.
64 */
65 private transient CodeSigner[] signers = null;
66
67 /*
68 * The code signers. Certificate chains are concatenated.
69 */
70 private transient java.security.cert.Certificate[] certs = null;
71
72 // cached SocketPermission used for matchLocation
73 private transient SocketPermission sp;
74
75 // for generating cert paths
76 private transient CertificateFactory factory = null;
77
78 /**
79 * A String form of the URL for use as a key in HashMaps/Sets. The String
80 * form should be behave in the same manner as the URL when compared for
|