pasn.encoding
Class ASN1UnnamedDecodedObject

java.lang.Object
  extended by pasn.encoding.ASN1DecodedObject
      extended by pasn.encoding.ASN1UnnamedDecodedObject
Direct Known Subclasses:
ASN1UnnamedDecodedConstructedObject, ASN1UnnamedDecodedPrimitiveObject

public abstract class ASN1UnnamedDecodedObject
extends ASN1DecodedObject

Generic holder for decoded ASN.1 objects

Author:
ncottin

Constructor Summary
ASN1UnnamedDecodedObject(ASN1ValueDecoder decoder, ASN1ValueChecker checker, int typeOrTag, ASN1Class asnClass, boolean primitive, boolean tagged)
           
 
Method Summary
 ASN1Class getAsnClass()
           
 long getLength()
           
 long getLengthIndex()
           
 long getPosition()
           
 int getTypeOrTag()
           
 long getValueIndex()
           
 boolean isConstructed()
           
 boolean isIndefiniteLength()
           
 boolean isPrimitive()
           
 boolean isSkipTag()
           
 boolean isTagged()
           
 boolean refersTo(ASN1GenericObject asn)
           
 boolean refersTo(ASN1TaggedObject tasn)
           
 void setAsnClass(ASN1Class asnClass)
           
 void setIndefiniteLength(boolean indefiniteLength)
           
 void setLength(long encodedLength)
           
 void setLengthIndex(long lengthIndex)
           
 void setPosition(long index)
           
 void setPrimitive(boolean primitive)
           
 void setSkipTag(boolean skip)
           
 void setTypeOrTag(int typeOrTag)
           
 void setValueIndex(long valueIndex)
           
 
Methods inherited from class pasn.encoding.ASN1DecodedObject
decodeInto, decodeInto, decodeInto, decodeInto, decodeInto, decodeInto, getValueDecoder, getValueSizeChecker, orderComponents, orderRequiredComponents, refersTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1UnnamedDecodedObject

public ASN1UnnamedDecodedObject(ASN1ValueDecoder decoder,
                                ASN1ValueChecker checker,
                                int typeOrTag,
                                ASN1Class asnClass,
                                boolean primitive,
                                boolean tagged)
Method Detail

setTypeOrTag

public final void setTypeOrTag(int typeOrTag)

getTypeOrTag

public final int getTypeOrTag()

setAsnClass

public final void setAsnClass(ASN1Class asnClass)

getAsnClass

public final ASN1Class getAsnClass()

setPrimitive

public final void setPrimitive(boolean primitive)

isPrimitive

public final boolean isPrimitive()

isConstructed

public final boolean isConstructed()

isTagged

public final boolean isTagged()

setSkipTag

public final void setSkipTag(boolean skip)

isSkipTag

public boolean isSkipTag()

getPosition

public final long getPosition()

setPosition

public final void setPosition(long index)

getLength

public final long getLength()
Returns:
the encodedLength

setLength

public final void setLength(long encodedLength)
Parameters:
encodedLength - the encodedLength to set

setLengthIndex

public final void setLengthIndex(long lengthIndex)

getLengthIndex

public final long getLengthIndex()

setIndefiniteLength

public final void setIndefiniteLength(boolean indefiniteLength)

isIndefiniteLength

public final boolean isIndefiniteLength()

setValueIndex

public final void setValueIndex(long valueIndex)

getValueIndex

public final long getValueIndex()

refersTo

public final boolean refersTo(ASN1TaggedObject tasn)
Specified by:
refersTo in class ASN1DecodedObject

refersTo

public final boolean refersTo(ASN1GenericObject asn)
Specified by:
refersTo in class ASN1DecodedObject