equal
deleted
inserted
replaced
128 * |
128 * |
129 * @serial |
129 * @serial |
130 */ |
130 */ |
131 private String actions; |
131 private String actions; |
132 |
132 |
133 private transient java.security.cert.Certificate certs[]; |
133 private transient java.security.cert.Certificate[] certs; |
134 |
134 |
135 /** |
135 /** |
136 * Creates a new UnresolvedPermission containing the permission |
136 * Creates a new UnresolvedPermission containing the permission |
137 * information needed later to actually create a Permission of the |
137 * information needed later to actually create a Permission of the |
138 * specified class, when the permission is resolved. |
138 * specified class, when the permission is resolved. |
150 * the array will not affect this UnsolvedPermission. |
150 * the array will not affect this UnsolvedPermission. |
151 */ |
151 */ |
152 public UnresolvedPermission(String type, |
152 public UnresolvedPermission(String type, |
153 String name, |
153 String name, |
154 String actions, |
154 String actions, |
155 java.security.cert.Certificate certs[]) |
155 java.security.cert.Certificate[] certs) |
156 { |
156 { |
157 super(type); |
157 super(type); |
158 |
158 |
159 if (type == null) |
159 if (type == null) |
160 throw new NullPointerException("type can't be null"); |
160 throw new NullPointerException("type can't be null"); |
222 |
222 |
223 /** |
223 /** |
224 * try and resolve this permission using the class loader of the permission |
224 * try and resolve this permission using the class loader of the permission |
225 * that was passed in. |
225 * that was passed in. |
226 */ |
226 */ |
227 Permission resolve(Permission p, java.security.cert.Certificate certs[]) { |
227 Permission resolve(Permission p, java.security.cert.Certificate[] certs) { |
228 if (this.certs != null) { |
228 if (this.certs != null) { |
229 // if p wasn't signed, we don't have a match |
229 // if p wasn't signed, we don't have a match |
230 if (certs == null) { |
230 if (certs == null) { |
231 return null; |
231 return null; |
232 } |
232 } |