1package org.bouncycastle.util.io.pem;
2
3import java.io.IOException;
4
5/**
6 * Base interface for parsers to convert PEM objects into specific objects.
7 */
8public interface PemObjectParser
9{
10    /**
11     * Parse an object out of the PEM object passed in.
12     *
13     * @param obj the PEM object containing the details for the specific object.
14     * @return a specific object represented by the  PEM object.
15     * @throws IOException on a parsing error.
16     */
17    Object parseObject(PemObject obj)
18            throws IOException;
19}
20