|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glite.security.util.DNImpl
public class DNImpl
DNImpl.java
| Field Summary | |
|---|---|
static int |
CANON
Marker for the canonicalized format. |
int |
count
The number of fields in the DN. |
java.lang.String |
m_canonicalString
The DN in canonical format. |
java.lang.String |
m_rfc2253String
The DN in RFC2253 format. |
java.lang.String |
m_x500String
The DN in X500 format. |
org.bouncycastle.asn1.DERObjectIdentifier[] |
oids
The array of object identifiers. |
java.lang.String[] |
rdns
The array of relative distiquished names. |
static int |
RFC2253
Marker for the RFC2253 format. |
static int |
X500
Marker for the X500 format. |
| Constructor Summary | |
|---|---|
DNImpl(org.bouncycastle.asn1.DERObjectIdentifier[] newOids,
java.lang.String[] newRdns,
int newCount)
Creates a new instance of DN. |
|
DNImpl(java.security.Principal principal)
Creates a new DNImpl object. |
|
DNImpl(java.lang.String name)
Creates a new DNImpl object. |
|
DNImpl(org.bouncycastle.asn1.x509.X509Name x509Name)
Creates a new DNImpl object. |
|
| Method Summary | |
|---|---|
java.lang.String |
constructRFC2253(boolean canon)
Contructs the RFC2253 format string of the DN. |
java.lang.String |
constructX500()
Contructs the X500 format string of the DN. |
boolean |
equals(java.lang.Object inputDN2)
The equals comparison of the DN with another DN. |
java.lang.String |
getCanon()
Generates a canonical format string of the DN. |
java.lang.String |
getRFC2253()
Generates a RFC2253 format string of the DN. |
java.lang.String |
getRFC2253v2()
Used to get the DN in RFC2253 format. |
java.lang.String |
getX500()
Generates a X500 format string of the DN. |
int |
hashCode()
Returns the hashcode of the instance. |
void |
parse(java.lang.String inputDN)
Parses the RFC2253 format string and puts the fields into the internal structure. |
void |
parseX500(java.lang.String inputDN)
Parses the X500 format string and puts the fields into the internal structure. |
java.lang.String |
toString()
Returns the RFC2253 format of the DN. |
DN |
withoutLastCN(boolean checkProxy)
Returns the DN without the last CN. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int RFC2253
public static final int X500
public static final int CANON
public java.lang.String m_rfc2253String
public java.lang.String m_x500String
public java.lang.String m_canonicalString
public java.lang.String[] rdns
public org.bouncycastle.asn1.DERObjectIdentifier[] oids
public int count
| Constructor Detail |
|---|
public DNImpl(org.bouncycastle.asn1.DERObjectIdentifier[] newOids,
java.lang.String[] newRdns,
int newCount)
newOids - The array of object identifiers.newRdns - The array or relative distinquished names.newCount - The number of fields in the DN (both oids and rdns have to
have this number of items).public DNImpl(java.lang.String name)
name - Generates a new DNImpl class from the DN in the name.public DNImpl(java.security.Principal principal)
principal - The Principal holding the information to generate the DN from.public DNImpl(org.bouncycastle.asn1.x509.X509Name x509Name)
x509Name - The X509Name instance holding the information to generate the
DN from.| Method Detail |
|---|
public java.lang.String getX500()
getX500 in interface DNpublic java.lang.String getRFC2253()
getRFC2253 in interface DNpublic java.lang.String getCanon()
getCanon in interface DNpublic java.lang.String constructX500()
public java.lang.String constructRFC2253(boolean canon)
canon - whether to construct canonical (lowercase) version of the
string.
public void parse(java.lang.String inputDN)
inputDN - the string that contains the DN to parse.public void parseX500(java.lang.String inputDN)
inputDN - the string that contains the DN to parse.public boolean equals(java.lang.Object inputDN2)
equals in class java.lang.ObjectinputDN2 - The DN to compare with.
public java.lang.String toString()
toString in class java.lang.Objectpublic DN withoutLastCN(boolean checkProxy)
withoutLastCN in interface DNcheckProxy - whether to check that the last CN is a proxy CN (matches
"^((limited )*proxy|[0-9]*)$").
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getRFC2253v2()
DN
getRFC2253v2 in interface DN
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||