Package com.sun.jini.jeri.internal.runtime

Examples of com.sun.jini.jeri.internal.runtime.WeakKey


  ProtectionDomain pd;
  if (client == null) {
      pd = emptyPD;
  } else {
      synchronized (domains) {
    WeakKey k;
    while ((k = (WeakKey) queue.poll()) != null) {
        domains.remove(k);
    }
    pd = (ProtectionDomain) domains.get(new WeakKey(client));
    if (pd == null) {
        Set set = client.getPrincipals();
        Principal[] prins =
      (Principal[]) set.toArray(new Principal[set.size()]);
        pd = new ProtectionDomain(emptyCS, null, null, prins);
        domains.put(new WeakKey(client, queue), pd);
    }
      }
  }
  boolean ok = pd.implies(permission);
  // XXX what about logging
View Full Code Here


  ProtectionDomain pd;
  if (client == null) {
      pd = emptyPD;
  } else {
      synchronized (domains) {
    WeakKey k;
    while ((k = (WeakKey) queue.poll()) != null) {
        domains.remove(k);
    }
    pd = (ProtectionDomain) domains.get(new WeakKey(client));
    if (pd == null) {
        Set set = client.getPrincipals();
        Principal[] prins =
      (Principal[]) set.toArray(new Principal[set.size()]);
        pd = new ProtectionDomain(emptyCS, null, null, prins);
        domains.put(new WeakKey(client, queue), pd);
    }
      }
  }
  boolean ok = pd.implies(permission);
  // XXX what about logging
View Full Code Here

TOP

Related Classes of com.sun.jini.jeri.internal.runtime.WeakKey

Copyright © 2018 www.massapicom. 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.