Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1.icao;
 
 
public class LDSVersionInfo
    extends ASN1Object
    private DERPrintableString ldsVersion;
    public LDSVersionInfo(String ldsVersionString unicodeVersion)
    {
        this. = new DERPrintableString(ldsVersion);
        this. = new DERPrintableString(unicodeVersion);
    }
    private LDSVersionInfo(ASN1Sequence seq)
    {
        if (seq.size() != 2)
        {
            throw new IllegalArgumentException("sequence wrong size for LDSVersionInfo");
        }
        this. = DERPrintableString.getInstance(seq.getObjectAt(0));
        this. = DERPrintableString.getInstance(seq.getObjectAt(1));
    }
    public static LDSVersionInfo getInstance(Object obj)
    {
        if (obj instanceof LDSVersionInfo)
        {
            return (LDSVersionInfo)obj;
        }
        else if (obj != null)
        {
            return new LDSVersionInfo(ASN1Sequence.getInstance(obj));
        }
        return null;
    }
    public String getLdsVersion()
    {
        return .getString();
    }
    public String getUnicodeVersion()
    {
        return .getString();
    }

    
 LDSVersionInfo ::= SEQUENCE {
    ldsVersion PRINTABLE STRING
    unicodeVersion PRINTABLE STRING
  }
 

Returns:
    public ASN1Primitive toASN1Primitive()
    {
        ASN1EncodableVector v = new ASN1EncodableVector();
        v.add();
        v.add();
        return new DERSequence(v);
    }
New to GrepCode? Check out our FAQ X