public class X509NameHelper
extends java.lang.Object
X509Name
object.Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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.CN
value
- 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
Copyright © 2013. All Rights Reserved.