Package org.bouncycastle.asn1.x500
Class RDN
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x500.RDN
- All Implemented Interfaces:
ASN1Encodable
public class RDN extends ASN1Object
-
Constructor Summary
Constructors Constructor Description RDN(ASN1ObjectIdentifier oid, ASN1Encodable value)Create a single valued RDN.RDN(AttributeTypeAndValue attrTAndV)RDN(AttributeTypeAndValue[] aAndVs)Create a multi-valued RDN. -
Method Summary
Modifier and Type Method Description AttributeTypeAndValuegetFirst()static RDNgetInstance(Object obj)AttributeTypeAndValue[]getTypesAndValues()booleanisMultiValued()intsize()Return the number of AttributeTypeAndValue objects in this RDN,ASN1PrimitivetoASN1Primitive()RelativeDistinguishedName ::= SET OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type AttributeType, value AttributeValue }Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
-
Constructor Details
-
RDN
Create a single valued RDN.- Parameters:
oid- RDN type.value- RDN value.
-
RDN
-
RDN
Create a multi-valued RDN.- Parameters:
aAndVs- attribute type/value pairs making up the RDN
-
-
Method Details
-
getInstance
-
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
-
getTypesAndValues
-
toASN1Primitive
RelativeDistinguishedName ::= SET OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type AttributeType, value AttributeValue }- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- this object as an ASN1Primitive type
-