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


Java JceAlgorithmIdentifierConverter类代码示例

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


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

示例1: getKeyDerivationAlgParameters

import org.bouncycastle.cms.jcajce.JceAlgorithmIdentifierConverter; //导入依赖的package包/类
/**
 * return an AlgorithmParameters object representing the parameters to the
 * key derivation algorithm to the recipient.
 *
 * @return AlgorithmParameters object, null if there aren't any.
*  @deprecated use getKeyDerivationAlgorithm and JceAlgorithmIdentifierConverter().
 */
public AlgorithmParameters getKeyDerivationAlgParameters(Provider provider)
{
    try
    {
        return new JceAlgorithmIdentifierConverter().setProvider(provider).getAlgorithmParameters(info.getKeyDerivationAlgorithm());
    }
    catch (Exception e)
    {
        throw new RuntimeException("exception getting encryption parameters " + e);
    }
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:19,代码来源:PasswordRecipientInformation.java

示例2: getMacAlgorithmParameters

import org.bouncycastle.cms.jcajce.JceAlgorithmIdentifierConverter; //导入依赖的package包/类
/**
 * Return an AlgorithmParameters object giving the MAC parameters
 * used to digest the message content.
 *
 * @param provider the provider to generate the parameters for.
 * @return the parameters object, null if there is not one.
 * @throws org.bouncycastle.cms.CMSException if the algorithm cannot be found, or the parameters can't be parsed.
 * @throws java.security.NoSuchProviderException if the provider cannot be found.
 * @deprecated use getMacAlgorithm and JceAlgorithmIdentifierConverter().
 */
public AlgorithmParameters getMacAlgorithmParameters(
    String  provider)
throws CMSException, NoSuchProviderException
{
    return new JceAlgorithmIdentifierConverter().setProvider(provider).getAlgorithmParameters(macAlg);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:17,代码来源:CMSAuthenticatedData.java

示例3: getKeyEncryptionAlgorithmParameters

import org.bouncycastle.cms.jcajce.JceAlgorithmIdentifierConverter; //导入依赖的package包/类
/**
 * Return an AlgorithmParameters object giving the encryption parameters
 * used to encrypt the key this recipient holds.
 *
 * @param provider the provider to generate the parameters for.
 * @return the parameters object, null if there is not one.
 * @throws CMSException            if the algorithm cannot be found, or the parameters can't be parsed.
 * @throws NoSuchProviderException if the provider cannot be found.
 * @deprecated use getKeyEncryptionAlgorithm and JceAlgorithmIdentifierConverter().
 */
public AlgorithmParameters getKeyEncryptionAlgorithmParameters(
    String provider)
    throws CMSException, NoSuchProviderException
{
    return new JceAlgorithmIdentifierConverter().setProvider(provider).getAlgorithmParameters(keyEncAlg);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:17,代码来源:RecipientInformation.java

示例4: getMacAlgorithmParameters

import org.bouncycastle.cms.jcajce.JceAlgorithmIdentifierConverter; //导入依赖的package包/类
/**
 * Return an AlgorithmParameters object giving the encryption parameters
 * used to encrypt the message content.
 *
 * @param provider the name of the provider to generate the parameters for.
 * @return the parameters object, null if there is not one.
 * @throws org.bouncycastle.cms.CMSException if the algorithm cannot be found, or the parameters can't be parsed.
 * @throws java.security.NoSuchProviderException if the provider cannot be found.
 * @deprecated use getMacAlgorithm and JceAlgorithmIdentifierConverter().
 */
public AlgorithmParameters getMacAlgorithmParameters(
    String provider)
    throws CMSException, NoSuchProviderException
{
    return new JceAlgorithmIdentifierConverter().setProvider(provider).getAlgorithmParameters(macAlg);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:17,代码来源:CMSAuthenticatedDataParser.java

示例5: getEncryptionAlgorithmParameters

import org.bouncycastle.cms.jcajce.JceAlgorithmIdentifierConverter; //导入依赖的package包/类
/**
 * Return an AlgorithmParameters object giving the encryption parameters
 * used to encrypt the message content.
 *
 * @param provider the provider to generate the parameters for.
 * @return the parameters object, null if there is not one.
 * @throws CMSException if the algorithm cannot be found, or the parameters can't be parsed.
 * @throws NoSuchProviderException if the provider cannot be found.
 * @deprecated use getContentEncryptionAlgorithm and JceAlgorithmIdentifierConverter().
 */
public AlgorithmParameters getEncryptionAlgorithmParameters(
    String  provider)
throws CMSException, NoSuchProviderException
{
    return new JceAlgorithmIdentifierConverter().setProvider(provider).getAlgorithmParameters(encAlg);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:17,代码来源:CMSEnvelopedDataParser.java


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