org.bouncycastle.asn1.x509

Class DistributionPointName

Implemented Interfaces:
ASN1Choice, DEREncodable

public class DistributionPointName
extends ASN1Encodable
implements ASN1Choice

The DistributionPointName object.
 DistributionPointName ::= CHOICE {
     fullName                 [0] GeneralNames,
     nameRelativeToCRLIssuer  [1] RelativeDistinguishedName
 }
 

Field Summary

static int
FULL_NAME
static int
NAME_RELATIVE_TO_CRL_ISSUER

Constructor Summary

DistributionPointName(int type, ASN1Encodable name)
DistributionPointName(int type, DEREncodable name)
DistributionPointName(ASN1TaggedObject obj)

Method Summary

static DistributionPointName
getInstance(Object obj)
static DistributionPointName
getInstance(ASN1TaggedObject obj, boolean explicit)
ASN1Encodable
getName()
Return the tagged object inside the distribution point name.
int
getType()
Return the tag number applying to the underlying choice.
DERObject
toASN1Object()

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Field Details

FULL_NAME

public static final int FULL_NAME

Field Value:
0


NAME_RELATIVE_TO_CRL_ISSUER

public static final int NAME_RELATIVE_TO_CRL_ISSUER

Field Value:
1

Constructor Details

DistributionPointName

public DistributionPointName(int type,
                             ASN1Encodable name)


DistributionPointName

public DistributionPointName(int type,
                             DEREncodable name)


DistributionPointName

public DistributionPointName(ASN1TaggedObject obj)

Method Details

getInstance

public static DistributionPointName getInstance(Object obj)


getInstance

public static DistributionPointName getInstance(ASN1TaggedObject obj,
                                                boolean explicit)


getName

public ASN1Encodable getName()
Return the tagged object inside the distribution point name.

Returns:
the underlying choice item.


getType

public int getType()
Return the tag number applying to the underlying choice.

Returns:
the tag number for this point name.


toASN1Object

public DERObject toASN1Object()
Overrides:
toASN1Object in interface ASN1Encodable