|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.crypt.x509.DNUtils
public final class DNUtils
Utility class with convenience methods for common operations performed on X.500 distinguished names.
| Method Summary | |
|---|---|
static String |
getAttributeValue(X500Principal dn,
AttributeType attribute)
Gets the value of the first occurrence of the given attribute in the DN. |
static String |
getAttributeValue(X500Principal dn,
String attributeOid)
Gets the value of the first occurrence of the given attribute in the DN. |
static String[] |
getAttributeValues(X500Principal dn,
AttributeType attribute)
Gets the values of the given attribute contained in the DN. |
static String[] |
getAttributeValues(X500Principal dn,
String attributeOid)
Gets the values of the given attribute contained in the DN. |
static String |
getCN(X500Principal dn)
Gets the CN attribute from the given X.500 distinguished name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String[] getAttributeValues(X500Principal dn,
AttributeType attribute)
NOTE: no escaping is done on special characters in the values, which could be different from what would appear in the string representation of the DN.
dn - X.500 distinguished name.attribute - Attribute whose values will be retrieved.
public static String[] getAttributeValues(X500Principal dn,
String attributeOid)
NOTE: no escaping is done on special characters in the values, which could be different from what would appear in the string representation of the DN.
dn - X.500 distinguished name.attributeOid - OID of attribute whose values will be retrieved.
public static String getAttributeValue(X500Principal dn,
AttributeType attribute)
NOTE: no escaping is done on special characters in the values, which could be different from what would appear in the string representation of the DN.
dn - X.500 distinguished name.attribute - Attribute whose value will be retrieved.
public static String getAttributeValue(X500Principal dn,
String attributeOid)
NOTE: no escaping is done on special characters in the values, which could be different from what would appear in the string representation of the DN.
dn - X.500 distinguished name.attributeOid - OID of attribute whose value will be retrieved.
public static String getCN(X500Principal dn)
NOTE: no escaping is done on special characters in the CN, which could be different from what would appear in the string representation of the DN.
dn - DN from which to extract common name attribute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||