1 package org.bouncycastle.util.io.pem;
2 
3 /**
4  * Base interface for generators of PEM objects.
5  */
6 public interface PemObjectGenerator
7 {
8     /**
9      * Generate a PEM object.
10      *
11      * @return the generated object.
12      * @throws PemGenerationException on failure.
13      */
generate()14     PemObject generate()
15         throws PemGenerationException;
16 }
17