public class CompoundDN
extends java.lang.Object
implements java.io.Serializable
DistinguishedName,
Serialized Form| Constructor and Description |
|---|
CompoundDN()
Default constructor.
|
CompoundDN(CompoundDN compoundDN)
Constructs with a CompoundDN object
|
CompoundDN(DistinguishedName baseDN)
Constructs with an initial base distinguished name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(DistinguishedName dn)
Adds a distinguished name to the end of the object.
|
boolean |
contains(DistinguishedName dn)
Returns whether the given distinguished name is contained within the object.
|
DistinguishedName |
first()
Returnst the first distinguished name of the object.
|
DistinguishedName |
get(int index)
Returns the distinguished name at the given index, or position, in the object.
|
java.util.Collection |
getDNs()
Returns all distinguished names in a collection.
|
DistinguishedName |
last()
Returnst the last distinguished name of the object.
|
void |
prepend(DistinguishedName dn)
Prepends a distinguished name to the front of the object.
|
DistinguishedName |
remove(int index)
Removes the distinguished name at the given index.
|
void |
replace(int index,
DistinguishedName dn)
Replaces the distinguished name at the given index.
|
int |
size()
Returns the number of distinguished names in the object.
|
java.lang.String |
toString()
Return the String representation of the object.
|
public CompoundDN()
public CompoundDN(DistinguishedName baseDN)
baseDN - Initial base DistinguishedName.public CompoundDN(CompoundDN compoundDN)
compoundDN - Initial CompoundDN object.public void append(DistinguishedName dn)
dn - DistinguishedName to add.public void prepend(DistinguishedName dn)
dn - DistinguishedName to prepend.public java.util.Collection getDNs()
public boolean contains(DistinguishedName dn)
dn - DistinguishedName to check for.public DistinguishedName get(int index)
index - position of DistinguishedName to returnjava.lang.ArrayIndexOutOfBoundsException - Thrown if index out of
range (index < 0 || index >= size()).public DistinguishedName first()
java.util.NoSuchElementException - Thrown if object is empty.public DistinguishedName last()
java.util.NoSuchElementException - Thrown if object is empty.public int size()
public void replace(int index,
DistinguishedName dn)
index - Index of the distinguished name to replace. Indecies
start at 0.dn - Replacement DistinguishedName.java.lang.ArrayIndexOutOfBoundsException - Thrown if index out of
range (index < 0 || index >= size()).public DistinguishedName remove(int index)
index - Index of the distinguished name to remove. Indecies
start at 0.java.lang.ArrayIndexOutOfBoundsException - Thrown if index out of
range (index < 0 || index >= size()).public java.lang.String toString()
toString in class java.lang.Object