org.bouncycastle.x509
Class X509StreamParserSpi
java.lang.Object
org.bouncycastle.x509.X509StreamParserSpi
public abstract class X509StreamParserSpi
extends java.lang.Object
This abstract class defines the service provider interface (SPI) for
X509StreamParser.
abstract void | engineInit(InputStream in) - Initializes this stream parser with the input stream.
|
abstract Object | engineRead() - Returns the next X.509 object of the type of this SPI from the given
input stream.
|
abstract Collection | engineReadAll() - Returns all X.509 objects of the type of this SPI from
the given input stream.
|
engineInit
public abstract void engineInit(InputStream in)
Initializes this stream parser with the input stream.
engineRead
public abstract Object engineRead()
throws org.bouncycastle.util.StreamParsingException
Returns the next X.509 object of the type of this SPI from the given
input stream.
- the next X.509 object in the stream or
null
if the
end of the stream is reached.
org.bouncycastle.util.StreamParsingException
- if the object cannot be created from input stream.
engineReadAll
public abstract Collection engineReadAll()
throws org.bouncycastle.util.StreamParsingException
Returns all X.509 objects of the type of this SPI from
the given input stream.
- A collection of all X.509 objects in the input stream or
null
if the end of the stream is reached.
org.bouncycastle.util.StreamParsingException
- if an object cannot be created from input stream.