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

DistributionPointName

public class DistributionPointName extends org.bouncycastle.asn1.ASN1Encodable implements org.bouncycastle.asn1.ASN1Choice
The DistributionPointName object.
DistributionPointName ::= CHOICE {
fullName [0] GeneralNames,
nameRelativeToCRLIssuer [1] RelativeDistinguishedName
}

Fields Summary
org.bouncycastle.asn1.DEREncodable
name
int
type
public static final int
FULL_NAME
public static final int
NAME_RELATIVE_TO_CRL_ISSUER
Constructors Summary
public DistributionPointName(int type, org.bouncycastle.asn1.DEREncodable name)

        this.type = type;
        this.name = name;
    
public DistributionPointName(int type, org.bouncycastle.asn1.ASN1Encodable name)

        this.type = type;
        this.name = name;
    
public DistributionPointName(org.bouncycastle.asn1.ASN1TaggedObject obj)

        this.type = obj.getTagNo();
        
        if (type == 0)
        {
            this.name = GeneralNames.getInstance(obj, false);
        }
        else
        {
            this.name = ASN1Set.getInstance(obj, false);
        }
    
Methods Summary
public static org.bouncycastle.asn1.x509.DistributionPointNamegetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)


       
         
                  
    
        return getInstance(ASN1TaggedObject.getInstance(obj, true));
    
public static org.bouncycastle.asn1.x509.DistributionPointNamegetInstance(java.lang.Object obj)

        if (obj == null || obj instanceof DistributionPointName)
        {
            return (DistributionPointName)obj;
        }
        else if (obj instanceof ASN1TaggedObject)
        {
            return new DistributionPointName((ASN1TaggedObject)obj);
        }

        throw new IllegalArgumentException("unknown object in factory");
    
public org.bouncycastle.asn1.ASN1EncodablegetName()
Return the tagged object inside the distribution point name.

return
the underlying choice item.

        return (ASN1Encodable)name;
    
public intgetType()
Return the tag number applying to the underlying choice.

return
the tag number for this point name.

        return this.type;
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()

        return new DERTaggedObject(false, type, name);