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

IssuingDistributionPoint

public class IssuingDistributionPoint extends Object
IssuingDistributionPoint ::= SEQUENCE { distributionPoint [0] DistributionPointName OPTIONAL, onlyContainsUserCerts [1] BOOLEAN DEFAULT FALSE, onlyContainsCACerts [2] BOOLEAN DEFAULT FALSE, onlySomeReasons [3] ReasonFlags OPTIONAL, indirectCRL [4] BOOLEAN DEFAULT FALSE, onlyContainsAttributeCerts [5] BOOLEAN DEFAULT FALSE }

Fields Summary
private boolean
onlyContainsUserCerts
private boolean
onlyContainsCACerts
private boolean
indirectCRL
private boolean
onlyContainsAttributeCerts
private org.bouncycastle.asn1.ASN1Sequence
seq
Constructors Summary
public IssuingDistributionPoint(org.bouncycastle.asn1.ASN1Sequence seq)
Constructor from ASN1Sequence

        this.seq = seq;

        for (int i = 0; i != seq.size(); i++)
        {
            ASN1TaggedObject  o = (ASN1TaggedObject)seq.getObjectAt(i);

            switch (o.getTagNo())
            {
            case 0:
                break;
            case 1:
                onlyContainsUserCerts = DERBoolean.getInstance(o, false).isTrue();
                break;
            case 2:
                onlyContainsCACerts = DERBoolean.getInstance(o, false).isTrue();
                break;
            case 3:
                break;
            case 4:
                indirectCRL = DERBoolean.getInstance(o, false).isTrue();
            case 5:
                onlyContainsAttributeCerts = DERBoolean.getInstance(o, false).isTrue();
                break;
            default:
                throw new IllegalArgumentException("unknown tag in IssuingDistributionPoint");
            }
        }
    
Methods Summary
public org.bouncycastle.asn1.DERObjectgetDERObject()

        return seq;
    
public static org.bouncycastle.asn1.x509.IssuingDistributionPointgetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)

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

        if (obj == null || obj instanceof IssuingDistributionPoint)
        {
            return (IssuingDistributionPoint)obj;
        }
        else if (obj instanceof ASN1Sequence)
        {
            return new IssuingDistributionPoint((ASN1Sequence)obj);
        }

        throw new IllegalArgumentException("unknown object in factory");
    
public booleanisIndirectCRL()

        return indirectCRL;
    
public booleanonlyContainsAttributeCerts()

        return onlyContainsAttributeCerts;
    
public booleanonlyContainsCACerts()

        return onlyContainsCACerts;
    
public booleanonlyContainsUserCerts()

        return onlyContainsUserCerts;