Top Description Fields Constructors Methods
org.bouncycastle.asn1.x500

public Class RDN

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Set, .ASN1TaggedObject, .DERSet

Holding class for a single Relative Distinguished Name (RDN).

Field Summary

Modifier and TypeField and Description
private ASN1Set

Constructor Summary

AccessConstructor and Description
private
RDN(ASN1Set values)

public
RDN(ASN1ObjectIdentifier
RDN type.
oid
,
ASN1Encodable
RDN value.
value
)

Create a single valued RDN.

public
public
RDN(AttributeTypeAndValue[]
attribute type/value pairs making up the RDN
aAndVs
)

Create a multi-valued RDN.

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv boolean
public AttributeTypeAndValue
public static RDN
public static RDN
getInstance(ASN1TaggedObject taggedObject, boolean declaredExplicit)

public AttributeTypeAndValue[]
public boolean
public int

Returns:

size of RDN, greater than 1 if multi-valued.
size
()

Return the number of AttributeTypeAndValue objects in this RDN,

public ASN1Primitive

Returns:

this object as its ASN1Primitive type
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

RelativeDistinguishedName ::=
                    SET OF AttributeTypeAndValue

AttributeTypeAndValue ::= SEQUENCE {
       type     AttributeType,
       value    AttributeValue }
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

valuesback to summary
private ASN1Set values

Constructor Detail

RDNback to summary
private RDN(ASN1Set values)
RDNback to summary
public RDN(ASN1ObjectIdentifier oid, ASN1Encodable value)

Create a single valued RDN.

Parameters
oid:ASN1ObjectIdentifier

RDN type.

value:ASN1Encodable

RDN value.

RDNback to summary
public RDN(AttributeTypeAndValue attrTAndV)
RDNback to summary
public RDN(AttributeTypeAndValue[] aAndVs)

Create a multi-valued RDN.

Parameters
aAndVs:AttributeTypeAndValue[]

attribute type/value pairs making up the RDN

Method Detail

collectAttributeTypesback to summary
pack-priv int collectAttributeTypes(ASN1ObjectIdentifier[] oids, int oidsOff)
containsAttributeTypeback to summary
pack-priv boolean containsAttributeType(ASN1ObjectIdentifier attributeType)
getFirstback to summary
public AttributeTypeAndValue getFirst()
getInstanceback to summary
public static RDN getInstance(Object obj)
getInstanceback to summary
public static RDN getInstance(ASN1TaggedObject taggedObject, boolean declaredExplicit)
getTypesAndValuesback to summary
public AttributeTypeAndValue[] getTypesAndValues()
isMultiValuedback to summary
public boolean isMultiValued()
sizeback to summary
public int size()

Return the number of AttributeTypeAndValue objects in this RDN,

Returns:int

size of RDN, greater than 1 if multi-valued.

toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

RelativeDistinguishedName ::=
                    SET OF AttributeTypeAndValue

AttributeTypeAndValue ::= SEQUENCE {
       type     AttributeType,
       value    AttributeValue }
Returns:ASN1Primitive

this object as its ASN1Primitive type