Package org.bouncycastle.x509
Class X509StreamParserSpi
java.lang.Object
org.bouncycastle.x509.X509StreamParserSpi
- Direct Known Subclasses:
X509AttrCertParser
,X509CertPairParser
,X509CertParser
,X509CRLParser
This abstract class defines the service provider interface (SPI) for
X509StreamParser.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Initializes this stream parser with the input stream.abstract Object
Returns the next X.509 object of the type of this SPI from the given input stream.abstract Collection
Returns all X.509 objects of the type of this SPI from the given input stream.
-
Constructor Details
-
X509StreamParserSpi
public X509StreamParserSpi()
-
-
Method Details
-
engineInit
Initializes this stream parser with the input stream.- Parameters:
in
- The input stream.
-
engineRead
Returns the next X.509 object of the type of this SPI from the given input stream.- Returns:
- the next X.509 object in the stream or
null
if the end of the stream is reached. - Throws:
StreamParsingException
- if the object cannot be created from input stream.
-
engineReadAll
Returns all X.509 objects of the type of this SPI from the given input stream.- Returns:
- A collection of all X.509 objects in the input stream or
null
if the end of the stream is reached. - Throws:
StreamParsingException
- if an object cannot be created from input stream.
-