| Modifier and Type | Field and Description |
|---|---|
private java.util.List<RDN> |
rdns
Maintains the list/sequence of RDNs.
|
| Constructor and Description |
|---|
RDNSequence() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(RDN rdn)
Adds an RDN to the sequence.
|
java.lang.Iterable<RDN> |
backward() |
java.lang.String |
getValue(AttributeType type)
Gets the first value of the given type that appears in the attribute list of any RDN in the sequence.
|
java.util.List<java.lang.String> |
getValues(AttributeType type)
Gets an immutable list of all attributes of the given type.
|
java.util.Iterator<RDN> |
iterator() |
java.lang.String |
toString()
Creates a comma-separated list of TYPE=VALUE tokens from the attributes in the list in order.
|
private final java.util.List<RDN> rdns
public void add(RDN rdn)
rdn - RDN to add.public java.util.Iterator<RDN> iterator()
iterator in interface java.lang.Iterable<RDN>public java.lang.Iterable<RDN> backward()
public java.util.List<java.lang.String> getValues(AttributeType type)
type - Attribute type.public java.lang.String getValue(AttributeType type)
type - Attribute type.public java.lang.String toString()
toString in class java.lang.ObjectCN=foo, OU=Bar, dc=example,
dc=com.