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