java.security.AccessControlContext.getDomainCombiner()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(33)

本文整理了Java中java.security.AccessControlContext.getDomainCombiner()方法的一些代码示例,展示了AccessControlContext.getDomainCombiner()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AccessControlContext.getDomainCombiner()方法的具体详情如下:
包路径:java.security.AccessControlContext
类名称:AccessControlContext
方法名:getDomainCombiner

AccessControlContext.getDomainCombiner介绍

暂无

代码示例

代码示例来源:origin: robovm/robovm

public DomainCombiner run() {
    return context.getDomainCombiner();
  }
};

代码示例来源:origin: com.bugvm/bugvm-rt

public DomainCombiner run() {
    return context.getDomainCombiner();
  }
};

代码示例来源:origin: ibinti/bugvm

public DomainCombiner run() {
    return context.getDomainCombiner();
  }
};

代码示例来源:origin: tiandawu/IotXmpp

public DomainCombiner run() {
    return context.getDomainCombiner();
  }
};

代码示例来源:origin: MobiVM/robovm

public DomainCombiner run() {
    return context.getDomainCombiner();
  }
};

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

public DomainCombiner run() {
    return context.getDomainCombiner();
  }
};

代码示例来源:origin: com.gluonhq/robovm-rt

public DomainCombiner run() {
    return context.getDomainCombiner();
  }
};

代码示例来源:origin: FlexoVM/flexovm

public DomainCombiner run() {
    return context.getDomainCombiner();
  }
};

代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform

public Object run() {
  DomainCombiner comb0 = acc0.getDomainCombiner();
  AccessControlContext acc1 =
  new AccessControlContext(acc0, new Combiner(comb0));
  AccessControlContext acc2 = (AccessControlContext)
  AccessController.doPrivileged(new PrivilegedAction() {
    public Object run() {
      return AccessController.getContext();
    }
    }, acc1);
  return new AccessControlContext(acc2, comb0);
}
});

代码示例来源:origin: org.apache.jspwiki/jspwiki-main

DomainCombiner dc = acc.getDomainCombiner();
if ( dc != null && dc instanceof SubjectDomainCombiner )

代码示例来源:origin: xap/xap

public Object run() {
    DomainCombiner comb0 = acc0.getDomainCombiner();
    AccessControlContext acc1 =
        new AccessControlContext(acc0, new Combiner(comb0));
    AccessControlContext acc2 = (AccessControlContext)
        AccessController.doPrivileged(new PrivilegedAction() {
          public Object run() {
            return AccessController.getContext();
          }
        }, acc1);
    return new AccessControlContext(acc2, comb0);
  }
});

代码示例来源:origin: xap/xap

/**
 * Creates privileged context that contains the protection domain of the given caller class (if
 * non-null) and uses the domain combiner of the specified context.  This method assumes it is
 * called from within a privileged block.
 */
private static AccessControlContext createPrivilegedContext(
    Class caller,
    AccessControlContext acc) {
  DomainCombiner comb = acc.getDomainCombiner();
  ProtectionDomain pd = caller.getProtectionDomain();
  ProtectionDomain[] pds = (pd != null) ?
      new ProtectionDomain[]{pd} : null;
  if (comb != null) {
    pds = comb.combine(pds, null);
  }
  if (pds == null) {
    pds = new ProtectionDomain[0];
  }
  return new AccessControlContext(new AccessControlContext(pds), comb);
}

代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform

/**
 * Creates privileged context that contains the protection domain of the
 * given caller class (if non-null) and uses the domain combiner of the
 * specified context.  This method assumes it is called from within a
 * privileged block.
 */
private static AccessControlContext createPrivilegedContext(
            Class caller,
            AccessControlContext acc)
{
DomainCombiner comb = acc.getDomainCombiner();
ProtectionDomain pd = caller.getProtectionDomain();
ProtectionDomain[] pds = (pd != null) ?
  new ProtectionDomain[]{pd} : null;
if (comb != null) {
  pds = comb.combine(pds, null);
}
if (pds == null) {
  pds = new ProtectionDomain[0];
}
return new AccessControlContext(new AccessControlContext(pds), comb);
}

相关文章