org.bouncycastle.x509
public class X509StreamParser extends Object implements StreamParser
A X509StreamParser is used to read a collection of objects or a single object
of a certain X.509 object structure. E.g. one X509StreamParser can read
certificates, another one CRLs, certification paths, attribute certificates
and so on. The kind of object structure is specified with the
algorithm
parameter to the getInstance
methods.
Implementations must implement the X509StreamParserSpi.
Method Summary | |
---|---|
static X509StreamParser | getInstance(String type)
Generates a StreamParser object that implements the specified type. |
static X509StreamParser | getInstance(String type, String provider)
Generates a X509StreamParser object for the specified type from the
specified provider.
|
static X509StreamParser | getInstance(String type, Provider provider)
Generates a X509StreamParser object for the specified type from the
specified provider.
|
Provider | getProvider() |
void | init(InputStream stream) |
void | init(byte[] data) |
Object | read() |
Collection | readAll() |
Parameters: type The name of the requested X.509 object type.
Returns: a StreamParser object for the specified type.
Throws: NoSuchParserException if the requested type is not available in the default provider package or any of the other provider packages that were searched.
Parameters: type the name of the requested X.509 object type. provider the name of the provider.
Returns: a X509StreamParser object for the specified type.
Throws: NoSuchParserException if the type is not available from the specified provider. NoSuchProviderException if the provider can not be found.
See Also: Provider
Parameters: type the name of the requested X.509 object type. provider the Provider to use.
Returns: a X509StreamParser object for the specified type.
Throws: NoSuchParserException if the type is not available from the specified provider.
See Also: Provider