org.bouncycastle.jce.provider

Class X509AttrCertParser


public class X509AttrCertParser
extends X509StreamParserSpi

Method Summary

void
engineInit(InputStream in)
Initializes this stream parser with the input stream.
Object
engineRead()
Returns the next X.509 object of the type of this SPI from the given input stream.
Collection
engineReadAll()
Returns all X.509 objects of the type of this SPI from the given input stream.

Methods inherited from class org.bouncycastle.x509.X509StreamParserSpi

engineInit, engineRead, engineReadAll

Method Details

engineInit

public void engineInit(InputStream in)
Initializes this stream parser with the input stream.
Overrides:
engineInit in interface X509StreamParserSpi
Parameters:
in - The input stream.

engineRead

public Object engineRead()
            throws StreamParsingException
Returns the next X.509 object of the type of this SPI from the given input stream.
Overrides:
engineRead in interface X509StreamParserSpi
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

public Collection engineReadAll()
            throws StreamParsingException
Returns all X.509 objects of the type of this SPI from the given input stream.
Overrides:
engineReadAll in interface X509StreamParserSpi
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.