Class RDN

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x500.RDN
All Implemented Interfaces:
ASN1Encodable, Encodable

public class RDN extends ASN1Object
Holding class for a single Relative Distinguished Name (RDN).
  • Constructor Details

  • Method Details

    • getInstance

      public static RDN getInstance(Object obj)
    • getInstance

      public static RDN getInstance(ASN1TaggedObject taggedObject, boolean declaredExplicit)
    • isMultiValued

      public boolean isMultiValued()
    • size

      public int size()
      Return the number of AttributeTypeAndValue objects in this RDN,
      Returns:
      size of RDN, greater than 1 if multi-valued.
    • getFirst

      public AttributeTypeAndValue getFirst()
    • getTypesAndValues

      public AttributeTypeAndValue[] getTypesAndValues()
    • toASN1Primitive

      public ASN1Primitive toASN1Primitive()
       RelativeDistinguishedName ::=
                           SET OF AttributeTypeAndValue
      
       AttributeTypeAndValue ::= SEQUENCE {
              type     AttributeType,
              value    AttributeValue }
       
      Specified by:
      toASN1Primitive in interface ASN1Encodable
      Specified by:
      toASN1Primitive in class ASN1Object
      Returns:
      this object as its ASN1Primitive type