|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.util.DNHandler
public class DNHandler
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.
Field Summary | |
---|---|
static java.util.Hashtable |
s_rfc2253Lookup
symbol table for printing the RDN identifiers, with "Email" |
static java.util.Hashtable |
s_rfc2253v2Lookup
symbol table for printing the RDN identifiers, with "emailAddress" |
Constructor Summary | |
---|---|
DNHandler()
|
Method Summary | |
---|---|
static DN |
getDN(java.security.Principal principal)
Generates a DN object form the Principal object. |
static DN |
getDN(java.lang.String inputDN)
Deprecated. Use getDNRFC2253(String inputDN) instead for proper reversed RFC 2253 DN support. This assumes DN that is not reversed. |
static DN |
getDN(org.bouncycastle.asn1.x509.X509Name x509Name)
Generates a DN object form the X509Name object. |
static DN |
getDNRFC2253(java.lang.String inputDN)
Generates a DN object from a String. |
static DN |
getIssuer(java.security.cert.X509Certificate cert)
Picks up the issuer from the certificate as a DN class without any transformations etc. |
static DN |
getSubject(java.security.cert.X509Certificate cert)
Picks up the subject from the certificate as a DN class without any transformations etc. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.Hashtable s_rfc2253v2Lookup
public static java.util.Hashtable s_rfc2253Lookup
Constructor Detail |
---|
public DNHandler()
Method Detail |
---|
public static DN getIssuer(java.security.cert.X509Certificate cert)
cert
- The certificate to the the issuer from.
public static DN getSubject(java.security.cert.X509Certificate cert)
cert
- The certificate to the the issuer from.
public static DN getDN(java.security.Principal principal)
principal
- The Principal to get the DN from.
public static DN getDN(org.bouncycastle.asn1.x509.X509Name x509Name)
x509Name
- The X509Name to get the DN from.
public static DN getDN(java.lang.String inputDN)
inputDN
- The string to get the DN from.
public static DN getDNRFC2253(java.lang.String inputDN)
inputDN
- The string to get the DN from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |