Lines Matching defs:that

9  * by Oracle in the LICENSE file that accompanied this code.
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
42 * that were used to verify signed code originating from that location.
129 * chains are of identical value. It is not required that
211 * create an array of CodeSigner objects. Note that only X.509 certificates
260 * equal to -1 (that is, if a port is specified), it must equal
292 * Note that if this CodeSource has a null location and a null
311 * CodeSource are also in <i>that</i>.
313 * @param that the CodeSource to check against.
317 private boolean matchCerts(CodeSource that, boolean strict)
324 return (that.certs == null && that.signers == null);
329 } else if (signers != null && that.signers != null) {
330 if (strict && signers.length != that.signers.length) {
335 for (int j = 0; j < that.signers.length; j++) {
336 if (signers[i].equals(that.signers[j])) {
346 } else if (certs != null && that.certs != null) {
347 if (strict && certs.length != that.certs.length) {
352 for (int j = 0; j < that.certs.length; j++) {
353 if (certs[i].equals(that.certs[j])) {
370 * @param that CodeSource to compare against
372 private boolean matchLocation(CodeSource that)
377 if ((that == null) || (that.location == null))
380 if (location.equals(that.location))
383 if (!location.getProtocol().equalsIgnoreCase(that.location.getProtocol()))
387 if (location.getPort() != that.location.getPort())
393 // and subdirectories contained in that directory.
394 // For example, "/a/b/-" implies anything that starts with
398 if (!that.location.getFile().startsWith(thisPath))
401 // Matches the directory and all the files contained in that
403 // For example, "/a/b/*" implies anything that starts with
405 int last = that.location.getFile().lastIndexOf('/');
410 String thatPath = that.location.getFile().substring(0, last+1);
416 if ((!that.location.getFile().equals(location.getFile()))
417 && (!that.location.getFile().equals(location.getFile()+"/"))) {
423 if (!location.getRef().equals(that.location.getRef()))
428 String thatHost = that.location.getHost();
440 if (that.sp == null) {
441 that.sp = new SocketPermission(thatHost, "resolve");
443 if (!this.sp.implies(that.sp)) {
484 * (a value of "zero" denotes that there are no certificates associated
546 // factory of that type (reuse existing factory if possible)