org.edg.security.util.api
Class DNHandler
java.lang.Object
|
+--org.edg.security.util.api.DNHandler
- public class DNHandler
- extends java.lang.Object
Distinguished Name (DN) handling routines.
These routines are separated into this separate class to ensure the DN
is always handled the same way. This separation also makes changing the
handling easy in case when for example the encoding changes or there is
need for changes in internationalization support.
Method Summary |
static DN |
getDN(java.security.Principal principal)
|
static DN |
getDN(java.lang.String inputDN)
|
static DN |
getIssuer(java.security.cert.X509Certificate cert)
|
static DN |
getSubject(java.security.cert.X509Certificate cert)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DNHandler
public DNHandler()
getIssuer
public static DN getIssuer(java.security.cert.X509Certificate cert)
getSubject
public static DN getSubject(java.security.cert.X509Certificate cert)
getDN
public static DN getDN(java.security.Principal principal)
getDN
public static DN getDN(java.lang.String inputDN)