Bouncy Castle Cryptography Library 1.71

org.bouncycastle.asn1
Class BERTaggedObjectParser

java.lang.Object
  |
  +--org.bouncycastle.asn1.BERTaggedObjectParser
All Implemented Interfaces:
ASN1Encodable, ASN1TaggedObjectParser, InMemoryRepresentable
Direct Known Subclasses:
BERApplicationSpecificParser

Deprecated. Will be made non-public. Test for and use only ASN1TaggedObjectParser.

public class BERTaggedObjectParser
extends java.lang.Object
implements ASN1TaggedObjectParser

Parser for indefinite-length tagged objects.


Method Summary
 ASN1Primitive getLoadedObject()
          Deprecated. Return an in-memory, encodable, representation of the tagged object.
 ASN1Encodable getObjectParser(int tag, boolean isExplicit)
          Deprecated. See ASN1TaggedObjectParser.getObjectParser(int, boolean).
 int getTagClass()
          Deprecated. Return the tag class associated with this object.
 int getTagNo()
          Deprecated. Return the tag number associated with this object.
 boolean hasContextTag(int tagNo)
          Deprecated.  
 boolean hasTag(int tagClass, int tagNo)
          Deprecated.  
 boolean isConstructed()
          Deprecated. Return true if this tagged object is marked as constructed.
 ASN1Encodable parseBaseUniversal(boolean declaredExplicit, int baseTagNo)
          Deprecated.  
 ASN1Encodable parseExplicitBaseObject()
          Deprecated. Needed for open types, until we have better type-guided parsing support.
 ASN1TaggedObjectParser parseExplicitBaseTagged()
          Deprecated.  
 ASN1TaggedObjectParser parseImplicitBaseTagged(int baseTagClass, int baseTagNo)
          Deprecated.  
 ASN1Primitive toASN1Primitive()
          Deprecated. Return an ASN1TaggedObject representing this parser and its contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTagClass

public int getTagClass()
Deprecated. 
Description copied from interface: ASN1TaggedObjectParser
Return the tag class associated with this object.
Specified by:
getTagClass in interface ASN1TaggedObjectParser
Following copied from interface: org.bouncycastle.asn1.ASN1TaggedObjectParser
Returns:
the tag class.

getTagNo

public int getTagNo()
Deprecated. 
Description copied from interface: ASN1TaggedObjectParser
Return the tag number associated with this object.
Specified by:
getTagNo in interface ASN1TaggedObjectParser
Following copied from interface: org.bouncycastle.asn1.ASN1TaggedObjectParser
Returns:
the tag number.

hasContextTag

public boolean hasContextTag(int tagNo)
Deprecated. 
Specified by:
hasContextTag in interface ASN1TaggedObjectParser

hasTag

public boolean hasTag(int tagClass,
                      int tagNo)
Deprecated. 
Specified by:
hasTag in interface ASN1TaggedObjectParser

isConstructed

public boolean isConstructed()
Deprecated. 
Return true if this tagged object is marked as constructed.
Returns:
true if constructed, false otherwise.

getObjectParser

public ASN1Encodable getObjectParser(int tag,
                                     boolean isExplicit)
                              throws java.io.IOException
Deprecated. See ASN1TaggedObjectParser.getObjectParser(int, boolean).

Return an object parser for the contents of this tagged object.
Specified by:
getObjectParser in interface ASN1TaggedObjectParser
Parameters:
tag - the actual tag number of the object (needed if implicit).
isExplicit - true if the contained object was explicitly tagged, false if implicit.
Returns:
an ASN.1 encodable object parser.
Throws:
java.io.IOException - if there is an issue building the object parser from the stream.

getLoadedObject

public ASN1Primitive getLoadedObject()
                              throws java.io.IOException
Deprecated. 
Return an in-memory, encodable, representation of the tagged object.
Specified by:
getLoadedObject in interface InMemoryRepresentable
Returns:
an ASN1TaggedObject.
Throws:
java.io.IOException - if there is an issue loading the data.

parseBaseUniversal

public ASN1Encodable parseBaseUniversal(boolean declaredExplicit,
                                        int baseTagNo)
                                 throws java.io.IOException
Deprecated. 
Specified by:
parseBaseUniversal in interface ASN1TaggedObjectParser

parseExplicitBaseObject

public ASN1Encodable parseExplicitBaseObject()
                                      throws java.io.IOException
Deprecated. 
Description copied from interface: ASN1TaggedObjectParser
Needed for open types, until we have better type-guided parsing support. Use sparingly for other purposes, and prefer ASN1TaggedObjectParser.parseExplicitBaseTagged() or ASN1TaggedObjectParser.parseBaseUniversal(boolean, int) where possible. Before using, check for matching tag class and number.
Specified by:
parseExplicitBaseObject in interface ASN1TaggedObjectParser

parseExplicitBaseTagged

public ASN1TaggedObjectParser parseExplicitBaseTagged()
                                               throws java.io.IOException
Deprecated. 
Specified by:
parseExplicitBaseTagged in interface ASN1TaggedObjectParser

parseImplicitBaseTagged

public ASN1TaggedObjectParser parseImplicitBaseTagged(int baseTagClass,
                                                      int baseTagNo)
                                               throws java.io.IOException
Deprecated. 
Specified by:
parseImplicitBaseTagged in interface ASN1TaggedObjectParser

toASN1Primitive

public ASN1Primitive toASN1Primitive()
Deprecated. 
Return an ASN1TaggedObject representing this parser and its contents.
Specified by:
toASN1Primitive in interface ASN1Encodable
Returns:
an ASN1TaggedObject

Bouncy Castle Cryptography Library 1.71