Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class BERSetParser

extends Object
implements ASN1SetParser
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1SetParser, org.bouncycastle.asn1.InMemoryRepresentable, org.bouncycastle.asn1.ASN1Encodable
Imports
java.io.IOException

Deprecated

Check for 'ASN1SetParser' instead

Parser for indefinite-length SETs.

Field Summary

Modifier and TypeField and Description
private ASN1StreamParser

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ASN1Primitive

Returns:

a BERSet.
getLoadedObject
()

Implements org.bouncycastle.asn1.InMemoryRepresentable.getLoadedObject.

Return an in-memory, encodable, representation of the SET.

pack-priv static BERSet
public ASN1Encodable

Returns:

the next object in the SET, null if there are no more.
readObject
()

Implements org.bouncycastle.asn1.ASN1SetParser.readObject.

Read the next object in the SET.

public ASN1Primitive

Returns:

an BERSet
toASN1Primitive
()

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an BERSet representing this parser and its contents.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_parserback to summary
private ASN1StreamParser _parser

Constructor Detail

BERSetParserback to summary
pack-priv BERSetParser(ASN1StreamParser parser)

Method Detail

getLoadedObjectback to summary
public ASN1Primitive getLoadedObject() throws IOException

Implements org.bouncycastle.asn1.InMemoryRepresentable.getLoadedObject.

Return an in-memory, encodable, representation of the SET.

Returns:ASN1Primitive

a BERSet.

Exceptions
IOException:
if there is an issue loading the data.
parseback to summary
pack-priv static BERSet parse(ASN1StreamParser sp) throws IOException
readObjectback to summary
public ASN1Encodable readObject() throws IOException

Implements org.bouncycastle.asn1.ASN1SetParser.readObject.

Read the next object in the SET.

Returns:ASN1Encodable

the next object in the SET, null if there are no more.

Exceptions
IOException:
if there is an issue reading the underlying stream.
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an BERSet representing this parser and its contents.

Returns:ASN1Primitive

an BERSet