public class X509NameHelper extends 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.x500.X500Name name)
Creates an instance using existing
X500Name
object. |
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,
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.x500.X500Name name)
Gets the last name component from the
X509Name name. |
org.bouncycastle.asn1.ASN1Set |
getNameEntryAt(int i)
Gets the name component at specified position.
|
String |
toString()
Returns Globus format representation of the name.
|
static 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.x500.X500Name name)
X500Name
object.
This behaves like a copy constructor.name
- existing X500Name
public 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, String value)
oid
- the name component oid, e.g. BCStyle.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.x500.X500Name name)
X509Name
name.public static String toString(org.bouncycastle.asn1.x509.X509Name name)
name
- the name to get the Globus format of.Copyright © 2016. All rights reserved.