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


Java BSIObjectIdentifiers类代码示例

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


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

示例1: isPlainECDSASigAlg

import org.bouncycastle.asn1.bsi.BSIObjectIdentifiers; //导入依赖的package包/类
public static boolean isPlainECDSASigAlg(AlgorithmIdentifier algId) {
    ParamUtil.requireNonNull("algId", algId);

    ASN1ObjectIdentifier oid = algId.getAlgorithm();
    if (BSIObjectIdentifiers.ecdsa_plain_SHA1.equals(oid)
            || BSIObjectIdentifiers.ecdsa_plain_SHA224.equals(oid)
            || BSIObjectIdentifiers.ecdsa_plain_SHA256.equals(oid)
            || BSIObjectIdentifiers.ecdsa_plain_SHA384.equals(oid)
            || BSIObjectIdentifiers.ecdsa_plain_SHA512.equals(oid)) {
        return true;
    }

    return false;
}
 
开发者ID:xipki,项目名称:xitk,代码行数:15,代码来源:AlgorithmUtil.java

示例2: DefaultCMSSignatureAlgorithmNameGenerator

import org.bouncycastle.asn1.bsi.BSIObjectIdentifiers; //导入依赖的package包/类
public DefaultCMSSignatureAlgorithmNameGenerator()
{
    addEntries(NISTObjectIdentifiers.dsa_with_sha224, "SHA224", "DSA");
    addEntries(NISTObjectIdentifiers.dsa_with_sha256, "SHA256", "DSA");
    addEntries(NISTObjectIdentifiers.dsa_with_sha384, "SHA384", "DSA");
    addEntries(NISTObjectIdentifiers.dsa_with_sha512, "SHA512", "DSA");
    addEntries(OIWObjectIdentifiers.dsaWithSHA1, "SHA1", "DSA");
    addEntries(OIWObjectIdentifiers.md4WithRSA, "MD4", "RSA");
    addEntries(OIWObjectIdentifiers.md4WithRSAEncryption, "MD4", "RSA");
    addEntries(OIWObjectIdentifiers.md5WithRSA, "MD5", "RSA");
    addEntries(OIWObjectIdentifiers.sha1WithRSA, "SHA1", "RSA");
    addEntries(PKCSObjectIdentifiers.md2WithRSAEncryption, "MD2", "RSA");
    addEntries(PKCSObjectIdentifiers.md4WithRSAEncryption, "MD4", "RSA");
    addEntries(PKCSObjectIdentifiers.md5WithRSAEncryption, "MD5", "RSA");
    addEntries(PKCSObjectIdentifiers.sha1WithRSAEncryption, "SHA1", "RSA");
    addEntries(PKCSObjectIdentifiers.sha224WithRSAEncryption, "SHA224", "RSA");
    addEntries(PKCSObjectIdentifiers.sha256WithRSAEncryption, "SHA256", "RSA");
    addEntries(PKCSObjectIdentifiers.sha384WithRSAEncryption, "SHA384", "RSA");
    addEntries(PKCSObjectIdentifiers.sha512WithRSAEncryption, "SHA512", "RSA");

    addEntries(TeleTrusTObjectIdentifiers.rsaSignatureWithripemd128, "RIPEMD128", "RSA");
    addEntries(TeleTrusTObjectIdentifiers.rsaSignatureWithripemd160, "RIPEMD160", "RSA");
    addEntries(TeleTrusTObjectIdentifiers.rsaSignatureWithripemd256, "RIPEMD256", "RSA");

    addEntries(X9ObjectIdentifiers.ecdsa_with_SHA1, "SHA1", "ECDSA");
    addEntries(X9ObjectIdentifiers.ecdsa_with_SHA224, "SHA224", "ECDSA");
    addEntries(X9ObjectIdentifiers.ecdsa_with_SHA256, "SHA256", "ECDSA");
    addEntries(X9ObjectIdentifiers.ecdsa_with_SHA384, "SHA384", "ECDSA");
    addEntries(X9ObjectIdentifiers.ecdsa_with_SHA512, "SHA512", "ECDSA");
    addEntries(X9ObjectIdentifiers.id_dsa_with_sha1, "SHA1", "DSA");
    addEntries(EACObjectIdentifiers.id_TA_ECDSA_SHA_1, "SHA1", "ECDSA");
    addEntries(EACObjectIdentifiers.id_TA_ECDSA_SHA_224, "SHA224", "ECDSA");
    addEntries(EACObjectIdentifiers.id_TA_ECDSA_SHA_256, "SHA256", "ECDSA");
    addEntries(EACObjectIdentifiers.id_TA_ECDSA_SHA_384, "SHA384", "ECDSA");
    addEntries(EACObjectIdentifiers.id_TA_ECDSA_SHA_512, "SHA512", "ECDSA");
    addEntries(EACObjectIdentifiers.id_TA_RSA_v1_5_SHA_1, "SHA1", "RSA");
    addEntries(EACObjectIdentifiers.id_TA_RSA_v1_5_SHA_256, "SHA256", "RSA");
    addEntries(EACObjectIdentifiers.id_TA_RSA_PSS_SHA_1, "SHA1", "RSAandMGF1");
    addEntries(EACObjectIdentifiers.id_TA_RSA_PSS_SHA_256, "SHA256", "RSAandMGF1");
    addEntries(BSIObjectIdentifiers.ecdsa_plain_SHA1, "SHA1", "PLAIN-ECDSA");
    addEntries(BSIObjectIdentifiers.ecdsa_plain_SHA224, "SHA224", "PLAIN-ECDSA");
    addEntries(BSIObjectIdentifiers.ecdsa_plain_SHA256, "SHA256", "PLAIN-ECDSA");
    addEntries(BSIObjectIdentifiers.ecdsa_plain_SHA384, "SHA384", "PLAIN-ECDSA");
    addEntries(BSIObjectIdentifiers.ecdsa_plain_SHA512, "SHA512", "PLAIN-ECDSA");
    addEntries(BSIObjectIdentifiers.ecdsa_plain_RIPEMD160, "RIPEMD160", "PLAIN-ECDSA");

    encryptionAlgs.put(X9ObjectIdentifiers.id_dsa, "DSA");
    encryptionAlgs.put(PKCSObjectIdentifiers.rsaEncryption, "RSA");
    encryptionAlgs.put(TeleTrusTObjectIdentifiers.teleTrusTRSAsignatureAlgorithm, "RSA");
    encryptionAlgs.put(X509ObjectIdentifiers.id_ea_rsa, "RSA");
    encryptionAlgs.put(PKCSObjectIdentifiers.id_RSASSA_PSS, "RSAandMGF1");
    encryptionAlgs.put(CryptoProObjectIdentifiers.gostR3410_94, "GOST3410");
    encryptionAlgs.put(CryptoProObjectIdentifiers.gostR3410_2001, "ECGOST3410");
    encryptionAlgs.put(new ASN1ObjectIdentifier("1.3.6.1.4.1.5849.1.6.2"), "ECGOST3410");
    encryptionAlgs.put(new ASN1ObjectIdentifier("1.3.6.1.4.1.5849.1.1.5"), "GOST3410");
    encryptionAlgs.put(CryptoProObjectIdentifiers.gostR3411_94_with_gostR3410_2001, "ECGOST3410");
    encryptionAlgs.put(CryptoProObjectIdentifiers.gostR3411_94_with_gostR3410_94, "GOST3410");

    digestAlgs.put(PKCSObjectIdentifiers.md2, "MD2");
    digestAlgs.put(PKCSObjectIdentifiers.md4, "MD4");
    digestAlgs.put(PKCSObjectIdentifiers.md5, "MD5");
    digestAlgs.put(OIWObjectIdentifiers.idSHA1, "SHA1");
    digestAlgs.put(NISTObjectIdentifiers.id_sha224, "SHA224");
    digestAlgs.put(NISTObjectIdentifiers.id_sha256, "SHA256");
    digestAlgs.put(NISTObjectIdentifiers.id_sha384, "SHA384");
    digestAlgs.put(NISTObjectIdentifiers.id_sha512, "SHA512");
    digestAlgs.put(TeleTrusTObjectIdentifiers.ripemd128, "RIPEMD128");
    digestAlgs.put(TeleTrusTObjectIdentifiers.ripemd160, "RIPEMD160");
    digestAlgs.put(TeleTrusTObjectIdentifiers.ripemd256, "RIPEMD256");
    digestAlgs.put(CryptoProObjectIdentifiers.gostR3411,  "GOST3411");
    digestAlgs.put(new ASN1ObjectIdentifier("1.3.6.1.4.1.5849.1.2.1"),  "GOST3411");
}
 
开发者ID:ttt43ttt,项目名称:gwt-crypto,代码行数:73,代码来源:DefaultCMSSignatureAlgorithmNameGenerator.java


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