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

DistributionPointName

public class DistributionPointName extends org.bouncycastle.asn1.ASN1Encodable
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(org.bouncycastle.asn1.ASN1TaggedObject obj)

		this.type = obj.getTagNo();
		
		if (type == 0)
		{
			this.name = ASN1Sequence.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, explicit));
	
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.DERObjecttoASN1Object()

        return new DERTaggedObject(false, type, name);