|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.util.DNImplRFC2253
public class DNImplRFC2253
DNImpl.java
Field Summary | |
---|---|
static int |
CANON
Marker for the canonicalized format. |
java.lang.String |
m_canonicalString
The DN in canonical format. |
int |
m_count
The number of fields in the DN. |
org.bouncycastle.asn1.DERObjectIdentifier[] |
m_oids
The array of object identifiers. |
java.lang.String[] |
m_rdns
The array of relative distinguished names. |
java.lang.String |
m_rfc2253String
The DN in RFC2253 format. |
java.lang.String |
m_x500String
The DN in X500 format. |
static int |
RFC2253
Marker for the RFC2253 format. |
static int |
X500
Marker for the X500 format. |
Constructor Summary | |
---|---|
DNImplRFC2253(org.bouncycastle.asn1.DERObjectIdentifier[] newOids,
java.lang.String[] newRdns,
int newCount)
Creates a new instance of DN. |
|
DNImplRFC2253(java.security.Principal principal)
Creates a new DNImpl object. |
|
DNImplRFC2253(java.lang.String name)
Creates a new DNImpl object. |
|
DNImplRFC2253(java.lang.String name,
boolean reversed)
Creates a new DNImpl object. |
|
DNImplRFC2253(org.bouncycastle.asn1.x509.X509Name x509Name)
Creates a new DNImpl object. |
Method Summary | |
---|---|
java.lang.String |
constructRFC2253(boolean canon)
Deprecated. Use getXXX or internally use private construct method. |
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 |
getLastCNValue()
Returns the value of the last CN value in the DN. |
java.lang.String |
getRFC2253()
Used to get the DN in RFC2253 format. |
java.lang.String |
getRFC2253v2()
Used to get the DN in RFC2253 format. |
java.lang.String |
getRFCDN()
Used to get the DN in RFC2253 format. |
java.lang.String |
getRFCDNv2()
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. |
boolean |
isEmpty()
Method to check if the DN is empty. |
void |
parse(java.lang.String inputDN)
Deprecated. internal method, replaced with parse(String inputDN, boolean reversed) |
void |
parseX500(java.lang.String inputDN)
Deprecated. internal method, replaced with parseX500(String inputDN, boolean reversed) |
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[] m_rdns
public org.bouncycastle.asn1.DERObjectIdentifier[] m_oids
public int m_count
Constructor Detail |
---|
public DNImplRFC2253(org.bouncycastle.asn1.DERObjectIdentifier[] newOids, java.lang.String[] newRdns, int newCount)
newOids
- The array of object identifiers.newRdns
- The array or relative distinguished names.newCount
- The number of fields in the DN (both oids and rdns have to have this number of items).public DNImplRFC2253(java.lang.String name)
name
- Generates a new DNImpl class from the DN in the name.public DNImplRFC2253(java.lang.String name, boolean reversed)
name
- Generates a new DNImpl class from the DN in the name.reversed
- Whether the given DN is reversed or not for proper RFC 2254 DNs this should be true.public DNImplRFC2253(java.security.Principal principal)
principal
- The Principal holding the information to generate the DN from.public DNImplRFC2253(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 DN
public java.lang.String getRFC2253()
DN
getRFC2253
in interface DN
public java.lang.String getRFC2253v2()
DN
getRFC2253v2
in interface DN
public java.lang.String getRFCDN()
DN
getRFCDN
in interface DN
public java.lang.String getRFCDNv2()
DN
getRFCDNv2
in interface DN
public java.lang.String getCanon()
getCanon
in interface DN
public 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.Object
inputDN2
- The DN to compare with.
public java.lang.String toString()
toString
in class java.lang.Object
public DN withoutLastCN(boolean checkProxy)
withoutLastCN
in interface DN
checkProxy
- whether to check that the last CN is a proxy CN (matches "^((limited )*proxy|[0-9]*)$").
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getLastCNValue()
DN
getLastCNValue
in interface DN
public boolean isEmpty()
DN
isEmpty
in interface DN
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |