kz.gamma.asn1.x500
Class RDN

java.lang.Object
  extended by kz.gamma.asn1.ASN1Encodable
      extended by kz.gamma.asn1.x500.RDN
All Implemented Interfaces:
DEREncodable

public class RDN
extends ASN1Encodable


Field Summary
private  ASN1Set values
           
 
Fields inherited from class kz.gamma.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
private RDN(ASN1Set values)
           
  RDN(AttributeTypeAndValue attrTAndV)
           
  RDN(AttributeTypeAndValue[] aAndVs)
          Create a multi-valued RDN.
  RDN(DERObjectIdentifier oid, ASN1Encodable value)
          Create a single valued RDN.
 
Method Summary
 AttributeTypeAndValue getFirst()
           
static RDN getInstance(java.lang.Object obj)
           
 AttributeTypeAndValue[] getTypesAndValues()
           
 boolean isMultiValued()
           
 int size()
          Return the number of AttributeTypeAndValue objects in this RDN,
 DERObject toASN1Object()
           RelativeDistinguishedName ::= SET OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type AttributeType, value AttributeValue }
 
Methods inherited from class kz.gamma.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

private ASN1Set values
Constructor Detail

RDN

private RDN(ASN1Set values)

RDN

public RDN(DERObjectIdentifier oid,
           ASN1Encodable value)
Create a single valued RDN.

Parameters:
oid - RDN type.
value - RDN value.

RDN

public RDN(AttributeTypeAndValue attrTAndV)

RDN

public RDN(AttributeTypeAndValue[] aAndVs)
Create a multi-valued RDN.

Parameters:
aAndVs - attribute type/value pairs making up the RDN
Method Detail

getInstance

public static RDN getInstance(java.lang.Object obj)

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()

toASN1Object

public DERObject toASN1Object()
 RelativeDistinguishedName ::=
                     SET OF AttributeTypeAndValue

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

Specified by:
toASN1Object in class ASN1Encodable
Returns:
this object as an ASN1Primitive type


Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.