org.openorb.orb.security
Class DistinguishedName
java.lang.Object
|
+--org.openorb.orb.security.DistinguishedName
- public final class DistinguishedName
- extends java.lang.Object
Helper class for dealing with distinguished names.
See RFC 1779, string representations of DNs.
- Author:
- Michael Rumpf
|
Field Summary |
static java.lang.String |
DEFAULT_SEPARATOR
The default DN seperator. |
static java.lang.String |
SEPARATORS
The separators used for parsing. |
|
Method Summary |
boolean |
equals(java.lang.Object obj)
Tests whether two instances of dinstinguished names are equal. |
static DistinguishedName |
parse(java.lang.String dn)
This method parses a string representation of a distinguished name. |
java.lang.String |
toString()
Converts the distinguished name into a string. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_SEPARATOR
public static final java.lang.String DEFAULT_SEPARATOR
- The default DN seperator.
SEPARATORS
public static final java.lang.String SEPARATORS
- The separators used for parsing.
toString
public java.lang.String toString()
- Converts the distinguished name into a string.
- Overrides:
toString in class java.lang.Object
- Returns:
- A string representation of the distinguished name.
parse
public static DistinguishedName parse(java.lang.String dn)
- This method parses a string representation of a distinguished name.
The
- Parameters:
dn - A distinguished name as string.- Returns:
- The parsed distingtuished name or null in case the parsing failed.
equals
public boolean equals(java.lang.Object obj)
- Tests whether two instances of dinstinguished names are equal.
- Overrides:
equals in class java.lang.Object
- Parameters:
obj - The object to test.- Returns:
- Return true when this instances is equal to the one specified.