当前位置: 首页>>代码示例>>Java>>正文


Java PutAllAction类代码示例

本文整理汇总了Java中sun.security.action.PutAllAction的典型用法代码示例。如果您正苦于以下问题:Java PutAllAction类的具体用法?Java PutAllAction怎么用?Java PutAllAction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PutAllAction类属于sun.security.action包,在下文中一共展示了PutAllAction类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Sun

import sun.security.action.PutAllAction; //导入依赖的package包/类
public Sun() {
    /* We are the SUN provider */
    super("SUN", 1.8d, INFO);

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new LinkedHashMap<>();
        SunEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:Sun.java

示例2: VerificationProvider

import sun.security.action.PutAllAction; //导入依赖的package包/类
public VerificationProvider() {
    super("SunJarVerification", 1.8d, "Jar Verification Provider");
    // register all algorithms normally registered by the Sun and SunRsaSign
    // providers, but only if they are missing
    if (ACTIVE == false) {
        return;
    }

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunEntries.putEntries(this);
        SunRsaSignEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new LinkedHashMap<>();
        SunEntries.putEntries(map);
        SunRsaSignEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:23,代码来源:VerificationProvider.java

示例3: Sun

import sun.security.action.PutAllAction; //导入依赖的package包/类
public Sun() {
    /* We are the SUN provider */
    super("SUN", PROVIDER_VER, INFO);

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new LinkedHashMap<>();
        SunEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:17,代码来源:Sun.java

示例4: VerificationProvider

import sun.security.action.PutAllAction; //导入依赖的package包/类
public VerificationProvider() {
    super("SunJarVerification", PROVIDER_VER, "Jar Verification Provider");
    // register all algorithms normally registered by the Sun and SunRsaSign
    // providers, but only if they are missing
    if (ACTIVE == false) {
        return;
    }

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunEntries.putEntries(this);
        SunRsaSignEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new LinkedHashMap<>();
        SunEntries.putEntries(map);
        SunRsaSignEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:23,代码来源:VerificationProvider.java

示例5: Sun

import sun.security.action.PutAllAction; //导入依赖的package包/类
public Sun() {
    /* We are the SUN provider */
    super("SUN", 9.0d, INFO);

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new LinkedHashMap<>();
        SunEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:17,代码来源:Sun.java

示例6: VerificationProvider

import sun.security.action.PutAllAction; //导入依赖的package包/类
public VerificationProvider() {
    super("SunJarVerification", 9.0d, "Jar Verification Provider");
    // register all algorithms normally registered by the Sun and SunRsaSign
    // providers, but only if they are missing
    if (ACTIVE == false) {
        return;
    }

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunEntries.putEntries(this);
        SunRsaSignEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new LinkedHashMap<>();
        SunEntries.putEntries(map);
        SunRsaSignEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:23,代码来源:VerificationProvider.java

示例7: Sun

import sun.security.action.PutAllAction; //导入依赖的package包/类
public Sun() {
    /* We are the SUN provider */
    super("SUN", 1.7, INFO);

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new LinkedHashMap<>();
        SunEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:openjdk,项目名称:jdk7-jdk,代码行数:17,代码来源:Sun.java

示例8: VerificationProvider

import sun.security.action.PutAllAction; //导入依赖的package包/类
public VerificationProvider() {
    super("SunJarVerification", 1.7, "Jar Verification Provider");
    // register all algorithms normally registered by the Sun and SunRsaSign
    // providers, but only if they are missing
    if (ACTIVE == false) {
        return;
    }

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunEntries.putEntries(this);
        SunRsaSignEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new LinkedHashMap<>();
        SunEntries.putEntries(map);
        SunRsaSignEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:openjdk,项目名称:jdk7-jdk,代码行数:23,代码来源:VerificationProvider.java

示例9: SunNativeProvider

import sun.security.action.PutAllAction; //导入依赖的package包/类
public SunNativeProvider() {
    /* We are the Sun NativeGSS provider */
    super(NAME, 1.8d, INFO);

    if (MECH_MAP != null) {
        AccessController.doPrivileged(new PutAllAction(this, MECH_MAP));
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:SunNativeProvider.java

示例10: SunRsaSign

import sun.security.action.PutAllAction; //导入依赖的package包/类
public SunRsaSign() {
    super("SunRsaSign", 1.8d, "Sun RSA signature provider");

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunRsaSignEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new HashMap<>();
        SunRsaSignEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:SunRsaSign.java

示例11: SunEC

import sun.security.action.PutAllAction; //导入依赖的package包/类
public SunEC() {
    super("SunEC", 1.8d, "Sun Elliptic Curve provider (EC, ECDSA, ECDH)");

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunECEntries.putEntries(this, useFullImplementation);
    } else {
        Map<Object, Object> map = new HashMap<Object, Object>();
        SunECEntries.putEntries(map, useFullImplementation);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:SunEC.java

示例12: SunRsaSign

import sun.security.action.PutAllAction; //导入依赖的package包/类
public SunRsaSign() {
    super("SunRsaSign", PROVIDER_VER, "Sun RSA signature provider");

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunRsaSignEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new HashMap<>();
        SunRsaSignEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:16,代码来源:SunRsaSign.java

示例13: SunNativeProvider

import sun.security.action.PutAllAction; //导入依赖的package包/类
public SunNativeProvider() {
    /* We are the Sun NativeGSS provider */
    super(NAME, PROVIDER_VER, INFO);

    if (MECH_MAP != null) {
        AccessController.doPrivileged(new PutAllAction(this, MECH_MAP));
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:SunNativeProvider.java

示例14: SunRsaSign

import sun.security.action.PutAllAction; //导入依赖的package包/类
public SunRsaSign() {
    super("SunRsaSign", 9.0d, "Sun RSA signature provider");

    // if there is no security manager installed, put directly into
    // the provider. Otherwise, create a temporary map and use a
    // doPrivileged() call at the end to transfer the contents
    if (System.getSecurityManager() == null) {
        SunRsaSignEntries.putEntries(this);
    } else {
        // use LinkedHashMap to preserve the order of the PRNGs
        Map<Object, Object> map = new HashMap<>();
        SunRsaSignEntries.putEntries(map);
        AccessController.doPrivileged(new PutAllAction(this, map));
    }
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:16,代码来源:SunRsaSign.java

示例15: SunNativeProvider

import sun.security.action.PutAllAction; //导入依赖的package包/类
public SunNativeProvider() {
    /* We are the Sun NativeGSS provider */
    super(NAME, 9.0d, INFO);

    if (MECH_MAP != null) {
        AccessController.doPrivileged(new PutAllAction(this, MECH_MAP));
    }
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:9,代码来源:SunNativeProvider.java


注:本文中的sun.security.action.PutAllAction类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。