Examples of Debug


Examples of sun.security.util.Debug

      //auth = InetAddress.getAllByName0(authHost, false)[0];
      authHost = hostname + '.' + authHost;
      auth = InetAddress.getAllByName0(authHost, false)[0];
      if (auth.equals(InetAddress.getByAddress(addr)))
          return true;
      Debug debug = getDebug();
      if (debug != null && Debug.isOn("failure")) {
    debug.println("socket access restriction: IP address of " + auth + " != " + InetAddress.getByAddress(addr));
      }
  } catch (UnknownHostException uhe) {
      Debug debug = getDebug();
      if (debug != null && Debug.isOn("failure")) {
    debug.println("socket access restriction: forward lookup failed for " + authHost);
      }
  } catch (IOException x) {
  }
  return false;
    }
View Full Code Here

Examples of sun.security.util.Debug

        if (!dumpDebug) {
      debug.println("access denied " + perm);
        }
        Thread.currentThread().dumpStack();
        final ProtectionDomain pd = context[i];
        final Debug db = debug;
        AccessController.doPrivileged (new PrivilegedAction() {
      public Object run() {
          db.println("domain that failed "+pd);
          return null;
      }
        });
    }
    throw new AccessControlException("access denied "+perm, perm);
View Full Code Here

Examples of sun.security.util.Debug

  }

  AccessControlContext stack = getStackAccessControlContext();
  // if context is null, we had privileged system code on the stack.
  if (stack == null) {
      Debug debug = AccessControlContext.getDebug();
      boolean dumpDebug = false;
      if (debug != null) {
    dumpDebug = !Debug.isOn("codebase=");
    dumpDebug &= !Debug.isOn("permission=") ||
        Debug.isOn("permission=" + perm.getClass().getCanonicalName());
      }

      if (dumpDebug && Debug.isOn("stack")) {
    Thread.currentThread().dumpStack();
      }

      if (dumpDebug && Debug.isOn("domain")) {
    debug.println("domain (context is null)");
      }

      if (dumpDebug) {
    debug.println("access allowed "+perm);
      }
      return;
  }

  AccessControlContext acc = stack.optimize();
View Full Code Here

Examples of sun.security.util.Debug

                }
                if (!match(cname, hostname)) {
                    // Last chance
                    if (!authorized(hostname, addresses[0].getAddress())) {
                        untrusted = true;
                        Debug debug = getDebug();
                        if (debug != null && Debug.isOn("failure")) {
                            debug.println("socket access restriction: proxied host " + "(" + addresses[0] + ")" + " does not match " + cname + " from reverse lookup");
                        }
                        return true;
                    }
                }
                trusted = true;
View Full Code Here

Examples of sun.security.util.Debug

            authHost = hostname + '.' + authHost;
            auth = InetAddress.getAllByName0(authHost, false)[0];
            if (auth.equals(InetAddress.getByAddress(addr))) {
                return true;
            }
            Debug debug = getDebug();
            if (debug != null && Debug.isOn("failure")) {
                debug.println("socket access restriction: IP address of " + auth + " != " + InetAddress.getByAddress(addr));
            }
        } catch (UnknownHostException uhe) {
            Debug debug = getDebug();
            if (debug != null && Debug.isOn("failure")) {
                debug.println("socket access restriction: forward lookup failed for " + authHost);
            }
        }
        return false;
    }
View Full Code Here

Examples of sun.security.util.Debug

            //auth = InetAddress.getAllByName0(authHost, false)[0];
            authHost = hostname + '.' + authHost;
            auth = InetAddress.getAllByName0(authHost, false)[0];
            if (auth.equals(InetAddress.getByAddress(addr)))
                return true;
            Debug debug = getDebug();
            if (debug != null && Debug.isOn("failure")) {
                debug.println("socket access restriction: IP address of " + auth + " != " + InetAddress.getByAddress(addr));
            }
        } catch (UnknownHostException uhe) {
            Debug debug = getDebug();
            if (debug != null && Debug.isOn("failure")) {
                debug.println("socket access restriction: forward lookup failed for " + authHost);
            }
        }
        return false;
    }
View Full Code Here

Examples of sun.security.util.Debug

        }

        AccessControlContext stack = getStackAccessControlContext();
        // if context is null, we had privileged system code on the stack.
        if (stack == null) {
            Debug debug = AccessControlContext.getDebug();
            boolean dumpDebug = false;
            if (debug != null) {
                dumpDebug = !Debug.isOn("codebase=");
                dumpDebug &= !Debug.isOn("permission=") ||
                    Debug.isOn("permission=" + perm.getClass().getCanonicalName());
            }

            if (dumpDebug && Debug.isOn("stack")) {
                Thread.dumpStack();
            }

            if (dumpDebug && Debug.isOn("domain")) {
                debug.println("domain (context is null)");
            }

            if (dumpDebug) {
                debug.println("access allowed "+perm);
            }
            return;
        }

        AccessControlContext acc = stack.optimize();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.