Package org.gudy.bouncycastle.asn1.x509
Class DistributionPointName
- java.lang.Object
-
- org.gudy.bouncycastle.asn1.ASN1Encodable
-
- org.gudy.bouncycastle.asn1.x509.DistributionPointName
-
- All Implemented Interfaces:
ASN1Choice
,DEREncodable
public class DistributionPointName extends ASN1Encodable implements ASN1Choice
The DistributionPointName object.DistributionPointName ::= CHOICE { fullName [0] GeneralNames, nameRelativeToCRLIssuer [1] RelativeDistinguishedName }
-
-
Field Summary
Fields Modifier and Type Field Description static int
FULL_NAME
(package private) DEREncodable
name
static int
NAME_RELATIVE_TO_CRL_ISSUER
(package private) int
type
-
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
-
-
Constructor Summary
Constructors Constructor Description DistributionPointName(int type, ASN1Encodable name)
DistributionPointName(int type, DEREncodable name)
DistributionPointName(ASN1TaggedObject obj)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
appendObject(java.lang.StringBuffer buf, java.lang.String sep, java.lang.String name, java.lang.String value)
static DistributionPointName
getInstance(java.lang.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()
java.lang.String
toString()
-
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
-
-
-
Field Detail
-
name
DEREncodable name
-
type
int type
-
FULL_NAME
public static final int FULL_NAME
- See Also:
- Constant Field Values
-
NAME_RELATIVE_TO_CRL_ISSUER
public static final int NAME_RELATIVE_TO_CRL_ISSUER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DistributionPointName
public DistributionPointName(int type, DEREncodable name)
-
DistributionPointName
public DistributionPointName(int type, ASN1Encodable name)
-
DistributionPointName
public DistributionPointName(ASN1TaggedObject obj)
-
-
Method Detail
-
getInstance
public static DistributionPointName getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
public static DistributionPointName getInstance(java.lang.Object obj)
-
getType
public int getType()
Return the tag number applying to the underlying choice.- Returns:
- the tag number for this point name.
-
getName
public ASN1Encodable getName()
Return the tagged object inside the distribution point name.- Returns:
- the underlying choice item.
-
toASN1Object
public DERObject toASN1Object()
- Specified by:
toASN1Object
in classASN1Encodable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
appendObject
private void appendObject(java.lang.StringBuffer buf, java.lang.String sep, java.lang.String name, java.lang.String value)
-
-