Class DistributionPointName

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.DistributionPointName
All Implemented Interfaces:
ASN1Choice, ASN1Encodable

public class DistributionPointName
extends ASN1Object
implements ASN1Choice
The DistributionPointName object.
 DistributionPointName ::= CHOICE {
     fullName                 [0] GeneralNames,
     nameRelativeToCRLIssuer  [1] RDN
 }
 
  • Field Details

  • Constructor Details

    • DistributionPointName

      public DistributionPointName​(int type, ASN1Encodable name)
    • DistributionPointName

      public DistributionPointName​(GeneralNames name)
    • DistributionPointName

      public DistributionPointName​(ASN1TaggedObject obj)
  • Method Details

    • getInstance

      public static DistributionPointName getInstance​(ASN1TaggedObject obj, boolean explicit)
    • getInstance

      public static DistributionPointName getInstance​(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.
    • toASN1Primitive

      public ASN1Primitive toASN1Primitive()
      Specified by:
      toASN1Primitive in interface ASN1Encodable
      Specified by:
      toASN1Primitive in class ASN1Object
    • toString

      public String toString()
      Description copied from class: Object
      Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
         getClass().getName() + '@' + Integer.toHexString(hashCode())

      See Writing a useful toString method if you intend implementing your own toString method.

      Overrides:
      toString in class Object
      Returns:
      a printable representation of this object.