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

public Class RDN

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Set, .DERSequence, .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
public AttributeTypeAndValue
public static RDN
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:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

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

getFirstback to summary
public AttributeTypeAndValue getFirst()
getInstanceback to summary
public static RDN getInstance(Object obj)
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