本文整理汇总了Java中org.bouncycastle.util.io.pem.PemGenerationException类的典型用法代码示例。如果您正苦于以下问题:Java PemGenerationException类的具体用法?Java PemGenerationException怎么用?Java PemGenerationException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PemGenerationException类属于org.bouncycastle.util.io.pem包,在下文中一共展示了PemGenerationException类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: writeObject
import org.bouncycastle.util.io.pem.PemGenerationException; //导入依赖的package包/类
public void writeObject(
Object obj,
PEMEncryptor encryptor)
throws IOException
{
try
{
super.writeObject(new JcaMiscPEMGenerator(obj, encryptor));
}
catch (PemGenerationException e)
{
if (e.getCause() instanceof IOException)
{
throw (IOException)e.getCause();
}
throw e;
}
}
开发者ID:Appdome,项目名称:ipack,代码行数:20,代码来源:PEMWriter.java
示例2: generate
import org.bouncycastle.util.io.pem.PemGenerationException; //导入依赖的package包/类
public PemObject generate()
throws PemGenerationException
{
try
{
if (encryptorBuilder != null)
{
outputEncryptor = encryptorBuilder.build();
}
}
catch (OperatorCreationException e)
{
throw new PemGenerationException("unable to create operator: " + e.getMessage(), e);
}
if (outputEncryptor != null)
{
return generate(key, outputEncryptor);
}
else
{
return generate(key, null);
}
}
开发者ID:Appdome,项目名称:ipack,代码行数:25,代码来源:PKCS8Generator.java
示例3: writeObject
import org.bouncycastle.util.io.pem.PemGenerationException; //导入依赖的package包/类
/**
* @param obj
* @param encryptor
* @throws IOException
*/
public void writeObject(
Object obj,
PEMEncryptor encryptor)
throws IOException
{
try
{
super.writeObject(new JcaMiscPEMGenerator(obj, encryptor));
}
catch (PemGenerationException e)
{
if (e.getCause() instanceof IOException)
{
throw (IOException)e.getCause();
}
throw e;
}
}
开发者ID:thedrummeraki,项目名称:Aki-SSL,代码行数:25,代码来源:PEMWriter.java
示例4: writeObject
import org.bouncycastle.util.io.pem.PemGenerationException; //导入依赖的package包/类
/**
* @param obj
* @param encryptor
* @throws java.io.IOException
*/
public void writeObject(
Object obj,
PEMEncryptor encryptor)
throws IOException
{
try
{
super.writeObject(new JcaMiscPEMGenerator(obj, encryptor));
}
catch (PemGenerationException e)
{
if (e.getCause() instanceof IOException)
{
throw (IOException)e.getCause();
}
throw e;
}
}
开发者ID:thedrummeraki,项目名称:Aki-SSL,代码行数:25,代码来源:JcaPEMWriter.java
示例5: generate
import org.bouncycastle.util.io.pem.PemGenerationException; //导入依赖的package包/类
public PemObject generate()
throws PemGenerationException
{
try
{
return createPemObject(obj);
}
catch (IOException e)
{
throw new PemGenerationException("encoding exception: " + e.getMessage(), e);
}
}
开发者ID:Appdome,项目名称:ipack,代码行数:13,代码来源:MiscPEMGenerator.java
示例6: generate
import org.bouncycastle.util.io.pem.PemGenerationException; //导入依赖的package包/类
public PemObject generate()
throws PemGenerationException
{
if (outputEncryptor != null)
{
return generate(key, outputEncryptor);
}
else
{
return generate(key, null);
}
}
开发者ID:thedrummeraki,项目名称:Aki-SSL,代码行数:13,代码来源:PKCS8Generator.java
示例7: JcaPKCS8Generator
import org.bouncycastle.util.io.pem.PemGenerationException; //导入依赖的package包/类
public JcaPKCS8Generator(PrivateKey key, OutputEncryptor encryptor)
throws PemGenerationException
{
super(PrivateKeyInfo.getInstance(key.getEncoded()), encryptor);
}
开发者ID:Appdome,项目名称:ipack,代码行数:6,代码来源:JcaPKCS8Generator.java
注:本文中的org.bouncycastle.util.io.pem.PemGenerationException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论