1c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrompackage org.bouncycastle.asn1;
2c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom
3c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstromimport java.io.IOException;
4c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom
5d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root/**
6d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root * A basic parser for a SET object
7d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root */
8c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrompublic interface ASN1SetParser
94c111300c39cb2e27f07fc2ae3b00e23ed4443b2Brian Carlstrom    extends ASN1Encodable, InMemoryRepresentable
10c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom{
11d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root    /**
12d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root     * Read the next object from the underlying object representing a SET.
13d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root     *
14d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root     * @throws IOException for bad input stream.
15d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root     * @return the next object, null if we are at the end.
16d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root     */
174c111300c39cb2e27f07fc2ae3b00e23ed4443b2Brian Carlstrom    public ASN1Encodable readObject()
18c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom        throws IOException;
19c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom}
20