本文整理汇总了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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}