pasn.encoding
Class ASN1DecodedObject

java.lang.Object
  extended by pasn.encoding.ASN1DecodedObject
Direct Known Subclasses:
ASN1EmptyDecodedObject, ASN1NamedDecodedObject, ASN1UnnamedDecodedObject

public abstract class ASN1DecodedObject
extends java.lang.Object

Generic holder for decoded ASN.1 objects

Author:
ncottin

Constructor Summary
ASN1DecodedObject(ASN1ValueDecoder decoder)
           
ASN1DecodedObject(ASN1ValueDecoder decoder, ASN1ValueChecker checker)
           
 
Method Summary
 boolean decodeInto(ASN1Component comp)
           
 boolean decodeInto(ASN1GenericObject asn)
           
abstract  boolean decodeInto(ASN1GenericObject asn, boolean optional)
           
 boolean decodeInto(ASN1GenericOrTaggedObject comp)
           
 boolean decodeInto(ASN1TaggedObject tasn)
           
abstract  boolean decodeInto(ASN1TaggedObject tasn, boolean optional)
           
 ASN1ValueDecoder getValueDecoder()
           
 ASN1ValueChecker getValueSizeChecker()
           
static java.util.List<ASN1Component> orderComponents(java.util.Collection<ASN1Component> components)
           
static java.util.List<ASN1MandatoryComponent> orderRequiredComponents(java.util.Set<ASN1MandatoryComponent> components)
           
abstract  boolean refersTo(ASN1GenericObject asn)
           
 boolean refersTo(ASN1GenericOrTaggedObject comp)
           
abstract  boolean refersTo(ASN1TaggedObject tasn)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1DecodedObject

public ASN1DecodedObject(ASN1ValueDecoder decoder)

ASN1DecodedObject

public ASN1DecodedObject(ASN1ValueDecoder decoder,
                         ASN1ValueChecker checker)
Method Detail

getValueDecoder

public final ASN1ValueDecoder getValueDecoder()

getValueSizeChecker

public final ASN1ValueChecker getValueSizeChecker()

orderComponents

public static final java.util.List<ASN1Component> orderComponents(java.util.Collection<ASN1Component> components)

orderRequiredComponents

public static final java.util.List<ASN1MandatoryComponent> orderRequiredComponents(java.util.Set<ASN1MandatoryComponent> components)

refersTo

public final boolean refersTo(ASN1GenericOrTaggedObject comp)

refersTo

public abstract boolean refersTo(ASN1TaggedObject tasn)

refersTo

public abstract boolean refersTo(ASN1GenericObject asn)

decodeInto

public final boolean decodeInto(ASN1GenericOrTaggedObject comp)
                         throws ASN1DecodingException,
                                ASN1FormatException,
                                ASN1ConstraintException
Throws:
ASN1DecodingException
ASN1FormatException
ASN1ConstraintException

decodeInto

public final boolean decodeInto(ASN1Component comp)
                         throws ASN1DecodingException,
                                ASN1FormatException,
                                ASN1ConstraintException
Throws:
ASN1DecodingException
ASN1FormatException
ASN1ConstraintException

decodeInto

public final boolean decodeInto(ASN1TaggedObject tasn)
                         throws ASN1DecodingException,
                                ASN1FormatException,
                                ASN1ConstraintException
Throws:
ASN1DecodingException
ASN1FormatException
ASN1ConstraintException

decodeInto

public final boolean decodeInto(ASN1GenericObject asn)
                         throws ASN1DecodingException,
                                ASN1FormatException,
                                ASN1ConstraintException
Throws:
ASN1DecodingException
ASN1FormatException
ASN1ConstraintException

decodeInto

public abstract boolean decodeInto(ASN1TaggedObject tasn,
                                   boolean optional)
                            throws ASN1DecodingException,
                                   ASN1FormatException,
                                   ASN1ConstraintException
Throws:
ASN1DecodingException
ASN1FormatException
ASN1ConstraintException

decodeInto

public abstract boolean decodeInto(ASN1GenericObject asn,
                                   boolean optional)
                            throws ASN1DecodingException,
                                   ASN1FormatException,
                                   ASN1ConstraintException
Throws:
ASN1DecodingException
ASN1FormatException
ASN1ConstraintException