FileDocCategorySizeDatePackage
PKIFreeText.javaAPI DocAndroid 1.5 API2102Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.cmp

PKIFreeText

public class PKIFreeText extends org.bouncycastle.asn1.ASN1Encodable

Fields Summary
org.bouncycastle.asn1.ASN1Sequence
strings
Constructors Summary
public PKIFreeText(org.bouncycastle.asn1.ASN1Sequence seq)

        Enumeration e = seq.getObjects();
        while (e.hasMoreElements())
        {
            if (!(e.nextElement() instanceof DERUTF8String))
            {
                throw new IllegalArgumentException("attempt to insert non UTF8 STRING into PKIFreeText");
            }
        }
        
        strings = seq;
    
public PKIFreeText(org.bouncycastle.asn1.DERUTF8String p)

        strings = new DERSequence(p);
    
Methods Summary
public static org.bouncycastle.asn1.cmp.PKIFreeTextgetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)

        return getInstance(ASN1Sequence.getInstance(obj, explicit));
    
public static org.bouncycastle.asn1.cmp.PKIFreeTextgetInstance(java.lang.Object obj)

        if (obj instanceof PKIFreeText)
        {
            return (PKIFreeText)obj;
        }
        else if (obj instanceof ASN1Sequence)
        {
            return new PKIFreeText((ASN1Sequence)obj);
        }

        throw new IllegalArgumentException("Unknown object in factory");
    
public org.bouncycastle.asn1.DERUTF8StringgetStringAt(int i)
Return the UTF8STRING at index i.

param
i index of the string of interest
return
the string at index i.

        return (DERUTF8String)strings.getObjectAt(i);
    
public intsize()
Return the number of string elements present.

return
number of elements present.

        return strings.size();
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()
PKIFreeText ::= SEQUENCE SIZE (1..MAX) OF UTF8String

        return strings;