|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.globus.gsi.bc
Class X509NameHelper
java.lang.Objectorg.globus.gsi.bc.X509NameHelper
public class X509NameHelper
- extends Object
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 |
|---|
X509NameHelper
public X509NameHelper(ASN1Sequence seq)
- Creates an instance using the specified ASN.1 sequence.
- Parameters:
seq- the name sequence
X509NameHelper
public X509NameHelper(X509Name name)
- Creates an instance using existing
X509Nameobject. This behaves like a copy constructor.- Parameters:
name- existingX509Name
| Method Detail |
|---|
getAsName
public X509Name getAsName()
- Converts to
X509Nameobject.- Returns:
- the
X509Nameobject.
add
public void add(DERObjectIdentifier oid, String value)
- Appends the specified OID and value pair
name component to the end of the current
name.
- Parameters:
oid- the name component oid, e.g.X509Name.CNvalue- the value (e.g. "proxy")
add
public void add(ASN1Set entry)
- Appends the specified name component
entry to the current name.
This can be used to add handle multiple
AVAs in one name component.
- Parameters:
entry- the name component to add.
getNameEntryAt
public ASN1Set getNameEntryAt(int i)
- Gets the name component at specified
position.
- Returns:
- the name component the specified position.
getLastNameEntry
public ASN1Set getLastNameEntry()
- Gets the last name component in the
current name.
- Returns:
- the last name component. Null if there is none.
getLastNameEntry
public static ASN1Set getLastNameEntry(X509Name name)
- Gets the last name component from
the
X509Namename.- Returns:
- the last name component. Null if there is none.
toString
public static String toString(X509Name name)
- Returns Globus format representation of the name.
It handles names with multiple AVAs.
- Parameters:
name- the name to get the Globus format of.- Returns:
- the Globus format of the name
toString
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.globus.gsi.bc.X509NameHelper