Class RDN
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.util.Encodable
public class RDN extends ASN1Object
Holding class for a single Relative Distinguished Name (RDN).
-
-
Constructor Summary
Constructors Constructor Description RDN(ASN1ObjectIdentifier oid, ASN1Encodable value)
Create a single valued RDN. RDN(AttributeTypeAndValue attrTAndV)
RDN(Array<AttributeTypeAndValue> aAndVs)
Create a multi-valued RDN.
-
Method Summary
Modifier and Type Method Description static RDN
getInstance(Object obj)
boolean
isMultiValued()
int
size()
Return the number of AttributeTypeAndValue objects in this RDN, AttributeTypeAndValue
getFirst()
Array<AttributeTypeAndValue>
getTypesAndValues()
ASN1Primitive
toASN1Primitive()
RelativeDistinguishedName ::= SET OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type AttributeType, value AttributeValue }
-
-
Constructor Detail
-
RDN
RDN(ASN1ObjectIdentifier oid, ASN1Encodable value)
Create a single valued RDN.- Parameters:
oid
- RDN type.value
- RDN value.
-
RDN
RDN(AttributeTypeAndValue attrTAndV)
-
RDN
RDN(Array<AttributeTypeAndValue> aAndVs)
Create a multi-valued RDN.- Parameters:
aAndVs
- attribute type/value pairs making up the RDN
-
-
Method Detail
-
getInstance
static RDN getInstance(Object obj)
-
isMultiValued
boolean isMultiValued()
-
size
int size()
Return the number of AttributeTypeAndValue objects in this RDN,
- Returns:
size of RDN, greater than 1 if multi-valued.
-
getFirst
AttributeTypeAndValue getFirst()
-
getTypesAndValues
Array<AttributeTypeAndValue> getTypesAndValues()
-
toASN1Primitive
ASN1Primitive toASN1Primitive()
RelativeDistinguishedName ::= SET OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type AttributeType, value AttributeValue }
- Returns:
this object as its ASN1Primitive type
-
-
-
-