Package org.bouncycastle.util.io.pem
Class PemObject
java.lang.Object
org.bouncycastle.util.io.pem.PemObject
- All Implemented Interfaces:
PemObjectGenerator
A generic PEM object - type, header properties, and byte content.
-
Constructor Details
-
PemObject
Generic constructor for object without headers.- Parameters:
type
- pem object type.content
- the binary content of the object.
-
PemObject
Generic constructor for object with headers.- Parameters:
type
- pem object type.headers
- a list of PemHeader objects.content
- the binary content of the object.
-
-
Method Details
-
getType
-
getHeaders
-
getContent
public byte[] getContent() -
generate
Description copied from interface:PemObjectGenerator
Generate a PEM object.- Specified by:
generate
in interfacePemObjectGenerator
- Returns:
- the generated object.
- Throws:
PemGenerationException
- on failure.
-