public class X500Name extends ASN1Encodable implements ASN1Choice
Name ::= CHOICE { RDNSequence } RDNSequence ::= SEQUENCE OF RelativeDistinguishedName RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type OBJECT IDENTIFIER, value ANY }
BER, DER
Constructor and Description |
---|
X500Name(RDN[] rDNs) |
X500Name(String dirName) |
X500Name(X500NameStyle style,
RDN[] rDNs) |
X500Name(X500NameStyle style,
String dirName) |
X500Name(X500NameStyle style,
X500Name name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
test for equality - note: case is ignored.
|
static X500NameStyle |
getDefaultStyle()
Return the current default style.
|
static X500Name |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Return a X509Name based on the passed in tagged object.
|
static X500Name |
getInstance(Object obj) |
RDN[] |
getRDNs()
return an array of RDNs in structure order.
|
RDN[] |
getRDNs(ASN1ObjectIdentifier oid)
return an array of RDNs containing the attribute type given by OID in structure order.
|
int |
hashCode() |
static void |
setDefaultStyle(X500NameStyle style)
Set the default style for X500Name construction.
|
DERObject |
toASN1Object() |
String |
toString() |
getDEREncoded, getDERObject, getEncoded, getEncoded
public X500Name(X500NameStyle style, X500Name name)
public X500Name(RDN[] rDNs)
public X500Name(X500NameStyle style, RDN[] rDNs)
public X500Name(String dirName)
public X500Name(X500NameStyle style, String dirName)
public static X500Name getInstance(ASN1TaggedObject obj, boolean explicit)
obj
- tag object holding name.explicit
- true if explicitly tagged false otherwise.public RDN[] getRDNs()
public RDN[] getRDNs(ASN1ObjectIdentifier oid)
oid
- the type OID we are looking for.public DERObject toASN1Object()
toASN1Object
in class ASN1Encodable
public int hashCode()
hashCode
in class ASN1Encodable
public boolean equals(Object obj)
equals
in class ASN1Encodable
public static void setDefaultStyle(X500NameStyle style)
style
- an X500NameStylepublic static X500NameStyle getDefaultStyle()
Copyright © 2015. All rights reserved.