public class PemObject extends Object implements PemObjectGenerator
| Constructor and Description |
|---|
PemObject(String type,
byte[] content)
Generic constructor for object without headers.
|
PemObject(String type,
List headers,
byte[] content)
Generic constructor for object with headers.
|
| Modifier and Type | Method and Description |
|---|---|
PemObject |
generate()
Generate a PEM object.
|
byte[] |
getContent() |
List |
getHeaders() |
String |
getType() |
public PemObject(String type, byte[] content)
type - pem object type.content - the binary content of the object.public String getType()
public List getHeaders()
public byte[] getContent()
public PemObject generate() throws PemGenerationException
PemObjectGeneratorgenerate in interface PemObjectGeneratorPemGenerationException - on failure.Copyright © 2015–2021 The veraPDF Consortium. All rights reserved.