FileDocCategorySizeDatePackage
ASN1OpenType.javaAPI DocAndroid 1.5 API2488Wed May 06 22:41:06 BST 2009org.apache.harmony.security.asn1

ASN1OpenType

public class ASN1OpenType extends ASN1Any
Represents ASN.1 open type that is defined by Oid
see
ASN.1

Fields Summary
private final Id
key
private final InformationObjectSet
pool
Constructors Summary
public ASN1OpenType(Id key, InformationObjectSet pool)

        this.key = key;
        this.pool = pool;
    
Methods Summary
public java.lang.Objectdecode(BerInputStream in)


        int[] oid = (int[]) in.get(key);
        if (oid == null) {
            throw new RuntimeException("");//FIXME message & type //$NON-NLS-1$
        }

        AttributeType attr = (AttributeType) pool.get(oid);
        if (attr == null || (!attr.type.checkTag(in.tag))) {
            in.content = (byte[]) super.getDecodedObject(in);
        } else {
            in.content = attr.type.decode(in);
        }
        return in.content;
    
public java.lang.ObjectgetDecodedObject(BerInputStream in)

        return in.content;