Top Description Fields Constructors Methods
org.bouncycastle.openssl

public Class MiscPEMGenerator

extends Object
implements PemObjectGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.io.pem.PemObjectGenerator
Known Direct Subclasses
org.bouncycastle.openssl.jcajce.JcaMiscPEMGenerator
Imports
java.io.IOException, java.math.BigInteger, java.util.ArrayList, .List, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1ObjectIdentifier, .DERSequence, org.bouncycastle.asn1.cms.ContentInfo, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, .PrivateKeyInfo, org.bouncycastle.asn1.x509.DSAParameter, .SubjectPublicKeyInfo, org.bouncycastle.asn1.x9.X9ObjectIdentifiers, org.bouncycastle.cert.X509AttributeCertificateHolder, .X509CRLHolder, .X509CertificateHolder, org.bouncycastle.pkcs.PKCS10CertificationRequest, .PKCS8EncryptedPrivateKeyInfo, org.bouncycastle.util.Strings, org.bouncycastle.util.io.pem.PemGenerationException, .PemHeader, .PemObject, .PemObjectGenerator

PEM generator for the original set of PEM objects used in Open SSL.

Field Summary

Modifier and TypeField and Description
private static final ASN1ObjectIdentifier[]
private final PEMEncryptor
private static final byte[]
private final Object

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private PemObject
public PemObject
private String
getHexEncoded(byte[] bytes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dsaOidsback to summary
private static final ASN1ObjectIdentifier[] dsaOids
encryptorback to summary
private final PEMEncryptor encryptor
hexEncodingTableback to summary
private static final byte[] hexEncodingTable
objback to summary
private final Object obj

Constructor Detail

MiscPEMGeneratorback to summary
public MiscPEMGenerator(Object o)
MiscPEMGeneratorback to summary
public MiscPEMGenerator(Object o, PEMEncryptor encryptor)

Method Detail

createPemObjectback to summary
private PemObject createPemObject(Object o) throws IOException
generateback to summary
public PemObject generate() throws PemGenerationException

Implements org.bouncycastle.util.io.pem.PemObjectGenerator.generate.

Doc from org.bouncycastle.util.io.pem.PemObjectGenerator.generate.

Generate a PEM object.

Returns:PemObject

the generated object.

Exceptions
PemGenerationException:
on failure.
getHexEncodedback to summary
private String getHexEncoded(byte[] bytes) throws IOException