FileDocCategorySizeDatePackage
CRLDistPoint.javaAPI DocAzureus 3.0.3.41913Tue Jun 08 05:12:56 BST 2004org.bouncycastle.asn1.x509

CRLDistPoint

public class CRLDistPoint extends Object implements org.bouncycastle.asn1.DEREncodable

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 org.bouncycastle.asn1.DERObjectgetDERObject()
Produce an object suitable for an ASN1OutputStream.
CRLDistPoint ::= SEQUENCE SIZE {1..MAX} OF DistributionPoint

        return seq;
    
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");