FileDocCategorySizeDatePackage
CRLDistPoint.javaAPI DocAndroid 1.5 API1992Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.x509

CRLDistPoint

public class CRLDistPoint extends org.bouncycastle.asn1.ASN1Encodable

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

        this.seq = seq;
    
public CRLDistPoint(DistributionPoint[] points)

        ASN1EncodableVector  v = new ASN1EncodableVector();

        for (int i = 0; i != points.length; i++)
        {
            v.add(points[i]);
        }

        seq = new DERSequence(v);
    
Methods Summary
public DistributionPoint[]getDistributionPoints()
Return the distribution points making up the sequence.

return
DistributionPoint[]

        DistributionPoint[]    dp = new DistributionPoint[seq.size()];
        
        for (int i = 0; i != seq.size(); i++)
        {
            dp[i] = DistributionPoint.getInstance(seq.getObjectAt(i));
        }
        
        return dp;
    
public static org.bouncycastle.asn1.x509.CRLDistPointgetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)


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

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

        throw new IllegalArgumentException("unknown object in factory");
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.
CRLDistPoint ::= SEQUENCE SIZE {1..MAX} OF DistributionPoint

        return seq;