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

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

java 3次浏览

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

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

示例1: BCECPrivateKey

点赞 3

import org.bouncycastle.jcajce.provider.config.ProviderConfiguration; //导入依赖的package包/类
public BCECPrivateKey(
    String algorithm,
    org.bouncycastle.jce.spec.ECPrivateKeySpec spec,
    ProviderConfiguration configuration)
{
    this.algorithm = algorithm;
    this.d = spec.getD();

    if (spec.getParams() != null) // can be null if implicitlyCA
    {
        ECCurve curve = spec.getParams().getCurve();
        EllipticCurve ellipticCurve;

        ellipticCurve = EC5Util.convertCurve(curve, spec.getParams().getSeed());

        this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams());
    }
    else
    {
        this.ecSpec = null;
    }

    this.configuration = configuration;
}
 

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

示例2: BCECPublicKey

点赞 3

import org.bouncycastle.jcajce.provider.config.ProviderConfiguration; //导入依赖的package包/类
public BCECPublicKey(
    String algorithm,
    ECPublicKeyParameters params,
    ECParameterSpec spec,
    ProviderConfiguration configuration)
{
    ECDomainParameters      dp = params.getParameters();

    this.algorithm = algorithm;
    this.q = params.getQ();

    if (spec == null)
    {
        EllipticCurve ellipticCurve = EC5Util.convertCurve(dp.getCurve(), dp.getSeed());

        this.ecSpec = createSpec(ellipticCurve, dp);
    }
    else
    {
        this.ecSpec = spec;
    }

    this.configuration = configuration;
}
 

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

示例3: BCECPublicKey

点赞 3

import org.bouncycastle.jcajce.provider.config.ProviderConfiguration; //导入依赖的package包/类
public BCECPublicKey(
    String              algorithm,
    ECPublicKeySpec     spec,
    ProviderConfiguration configuration)
{
    this.algorithm = algorithm;
    this.q = spec.getQ();
    this.configuration = configuration;

    if (spec.getParams() != null)
    {
        this.ecSpec = spec.getParams();
    }
    else
    {
        if (q.getCurve() == null)
        {
            org.bouncycastle.jce.spec.ECParameterSpec s = BouncyCastleProvider.CONFIGURATION.getEcImplicitlyCa();

            q = s.getCurve().createPoint(q.getX().toBigInteger(), q.getY().toBigInteger(), false);
        }
        this.ecSpec = null;
    }
}
 

开发者ID:credentials,
项目名称:irma_future_id,
代码行数:25,
代码来源:BCECPublicKey.java

示例4: KeyFactorySpi

点赞 2

import org.bouncycastle.jcajce.provider.config.ProviderConfiguration; //导入依赖的package包/类
KeyFactorySpi(
    String algorithm,
    ProviderConfiguration configuration)
{
    this.algorithm = algorithm;
    this.configuration = configuration;
}
 

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

示例5: EC

点赞 2

import org.bouncycastle.jcajce.provider.config.ProviderConfiguration; //导入依赖的package包/类
public EC(
    String  algorithm,
    ProviderConfiguration configuration)
{
    super(algorithm);
    this.algorithm = algorithm;
    this.configuration = configuration;
}
 

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


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