|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.gsi.bc.X509NameHelper
public class X509NameHelper
A helper class to deal with X509Name object.
| Constructor Summary | |
|---|---|
X509NameHelper(org.bouncycastle.asn1.ASN1Sequence seq)
Creates an instance using the specified ASN.1 sequence. |
|
X509NameHelper(org.bouncycastle.asn1.x509.X509Name name)
Creates an instance using existing X509Name
object. |
|
| Method Summary | |
|---|---|
void |
add(org.bouncycastle.asn1.ASN1Set entry)
Appends the specified name component entry to the current name. |
void |
add(org.bouncycastle.asn1.DERObjectIdentifier oid,
java.lang.String value)
Appends the specified OID and value pair name component to the end of the current name. |
org.bouncycastle.asn1.x509.X509Name |
getAsName()
Converts to X509Name object. |
org.bouncycastle.asn1.ASN1Set |
getLastNameEntry()
Gets the last name component in the current name. |
static org.bouncycastle.asn1.ASN1Set |
getLastNameEntry(org.bouncycastle.asn1.x509.X509Name name)
Gets the last name component from the X509Name name. |
org.bouncycastle.asn1.ASN1Set |
getNameEntryAt(int i)
Gets the name component at specified position. |
java.lang.String |
toString()
Returns Globus format representation of the name. |
static java.lang.String |
toString(org.bouncycastle.asn1.x509.X509Name name)
Returns Globus format representation of the name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public X509NameHelper(org.bouncycastle.asn1.ASN1Sequence seq)
seq - the name sequencepublic X509NameHelper(org.bouncycastle.asn1.x509.X509Name name)
X509Name
object.
This behaves like a copy constructor.
name - existing X509Name| Method Detail |
|---|
public org.bouncycastle.asn1.x509.X509Name getAsName()
X509Name object.
X509Name object.
public void add(org.bouncycastle.asn1.DERObjectIdentifier oid,
java.lang.String value)
oid - the name component oid, e.g. X509Name.CNvalue - the value (e.g. "proxy")public void add(org.bouncycastle.asn1.ASN1Set entry)
entry - the name component to add.public org.bouncycastle.asn1.ASN1Set getNameEntryAt(int i)
public org.bouncycastle.asn1.ASN1Set getLastNameEntry()
public static org.bouncycastle.asn1.ASN1Set getLastNameEntry(org.bouncycastle.asn1.x509.X509Name name)
X509Name name.
public static java.lang.String toString(org.bouncycastle.asn1.x509.X509Name name)
name - the name to get the Globus format of.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||