public class PemObject extends java.lang.Object implements PemObjectGenerator
| Constructor and Description |
|---|
PemObject(java.lang.String type,
byte[] content)
Generic constructor for object without headers.
|
PemObject(java.lang.String type,
java.util.List headers,
byte[] content)
Generic constructor for object with headers.
|
| Modifier and Type | Method and Description |
|---|---|
PemObject |
generate()
Generate a PEM object.
|
byte[] |
getContent() |
java.util.List |
getHeaders() |
java.lang.String |
getType() |
public PemObject(java.lang.String type,
byte[] content)
type - pem object type.content - the binary content of the object.public PemObject(java.lang.String type,
java.util.List headers,
byte[] content)
type - pem object type.headers - a list of PemHeader objects.content - the binary content of the object.public java.lang.String getType()
public java.util.List getHeaders()
public byte[] getContent()
public PemObject generate() throws PemGenerationException
PemObjectGeneratorgenerate in interface PemObjectGeneratorPemGenerationException - on failure.