• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java UAObjectIdentifiers类的典型用法和代码示例

java 1次浏览

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

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

示例1: configure

点赞 3

import org.bouncycastle.asn1.ua.UAObjectIdentifiers; //导入依赖的package包/类
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("KeyFactory.DSTU4145", PREFIX + "KeyFactorySpi");
    provider.addAlgorithm("Alg.Alias.KeyFactory.DSTU-4145-2002", "DSTU4145");
    provider.addAlgorithm("Alg.Alias.KeyFactory.DSTU4145-3410", "DSTU4145");

    registerOid(provider, UAObjectIdentifiers.dstu4145le, "DSTU4145", new KeyFactorySpi());
    registerOidAlgorithmParameters(provider, UAObjectIdentifiers.dstu4145le, "DSTU4145");
    registerOid(provider, UAObjectIdentifiers.dstu4145be, "DSTU4145", new KeyFactorySpi());
    registerOidAlgorithmParameters(provider, UAObjectIdentifiers.dstu4145be, "DSTU4145");

    provider.addAlgorithm("KeyPairGenerator.DSTU4145", PREFIX + "KeyPairGeneratorSpi");
    provider.addAlgorithm("Alg.Alias.KeyPairGenerator.DSTU-4145", "DSTU4145");
    provider.addAlgorithm("Alg.Alias.KeyPairGenerator.DSTU-4145-2002", "DSTU4145");

    provider.addAlgorithm("Signature.DSTU4145", PREFIX + "SignatureSpi");
    provider.addAlgorithm("Alg.Alias.Signature.DSTU-4145", "DSTU4145");
    provider.addAlgorithm("Alg.Alias.Signature.DSTU-4145-2002", "DSTU4145");

    addSignatureAlgorithm(provider, "GOST3411", "DSTU4145LE", PREFIX + "SignatureSpiLe", UAObjectIdentifiers.dstu4145le);
    addSignatureAlgorithm(provider, "GOST3411", "DSTU4145", PREFIX + "SignatureSpi", UAObjectIdentifiers.dstu4145be);
}
 

开发者ID:Appdome,
项目名称:ipack,
代码行数:23,
代码来源:DSTU4145.java

示例2: generatePrivate

点赞 2

import org.bouncycastle.asn1.ua.UAObjectIdentifiers; //导入依赖的package包/类
public PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
    throws IOException
{
    ASN1ObjectIdentifier algOid = keyInfo.getPrivateKeyAlgorithm().getAlgorithm();

    if (algOid.equals(UAObjectIdentifiers.dstu4145le) || algOid.equals(UAObjectIdentifiers.dstu4145be))
    {
        return new BCDSTU4145PrivateKey(keyInfo);
    }
    else
    {
        throw new IOException("algorithm identifier " + algOid + " in key not recognised");
    }
}
 

开发者ID:Appdome,
项目名称:ipack,
代码行数:15,
代码来源:KeyFactorySpi.java

示例3: generatePublic

点赞 2

import org.bouncycastle.asn1.ua.UAObjectIdentifiers; //导入依赖的package包/类
public PublicKey generatePublic(SubjectPublicKeyInfo keyInfo)
    throws IOException
{
    ASN1ObjectIdentifier algOid = keyInfo.getAlgorithm().getAlgorithm();

    if (algOid.equals(UAObjectIdentifiers.dstu4145le) || algOid.equals(UAObjectIdentifiers.dstu4145be))
    {
        return new BCDSTU4145PublicKey(keyInfo);
    }
    else
    {
        throw new IOException("algorithm identifier " + algOid + " in key not recognised");
    }
}
 

开发者ID:Appdome,
项目名称:ipack,
代码行数:15,
代码来源:KeyFactorySpi.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)