DTASN1Parser Class Reference
Instances of this class parse ASN1 documents in an event-driven manner. A DTASN1Parser notifies its delegate about the items (elements, collections, and so on) that it encounters as it processes an ASN1 document. It does not itself do anything with those parsed items except report them. It also reports parsing errors. For convenience, a DTASN1Parser object in the following descriptions is sometimes referred to as a parser object.
Initializing a Parser Object
NSError object from which you can obtain information about a parsing error.
@property (nonatomic, readonly, strong) NSError *parserError
You may invoke this method after a parsing operation abnormally terminates to determine the cause of error.
Stops the parser object.
Returns the receiver’s delegate.
Initializes the receiver with the ASN1 contents encapsulated in a given data object.
- (id)initWithData:(NSData *)data
NSDataobject containing ASN1 encoded data.
DTASN1Parser object or nil if an error occurs.
Starts the event-driven parsing operation.
YES if parsing is successful and
NO in there is an error or if the parsing operation is aborted.
If you invoke this method, the delegate, if it implements parser:parseErrorOccurred:, is informed of the cancelled parsing operation.