|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkz.gamma.asn1.ASN1Encodable
kz.gamma.asn1.x500.X500Name
public class X500Name
Name ::= CHOICE {
RDNSequence }
RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue
AttributeTypeAndValue ::= SEQUENCE {
type OBJECT IDENTIFIER,
value ANY }
| Field Summary | |
|---|---|
private static X500NameStyle |
defaultStyle
|
private int |
hashCodeValue
|
private boolean |
isHashCodeCalculated
|
private RDN[] |
rdns
|
private X500NameStyle |
style
|
| Fields inherited from class kz.gamma.asn1.ASN1Encodable |
|---|
BER, DER |
| Constructor Summary | |
|---|---|
private |
X500Name(ASN1Sequence seq)
Constructor from ASN1Sequence the principal will be a list of constructed sets, each containing an (OID, String) pair. |
|
X500Name(RDN[] rDNs)
|
|
X500Name(java.lang.String dirName)
|
private |
X500Name(X500NameStyle style,
ASN1Sequence seq)
|
|
X500Name(X500NameStyle style,
RDN[] rDNs)
|
|
X500Name(X500NameStyle style,
java.lang.String dirName)
|
|
X500Name(X500NameStyle style,
X500Name name)
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
test for equality - note: case is ignored. |
DERObjectIdentifier[] |
getAttributeTypes()
return an array of OIDs contained in the attribute type of each RDN in structure order. |
static X500NameStyle |
getDefaultStyle()
Return the current default style. |
static X500Name |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Return a X500Name based on the passed in tagged object. |
static X500Name |
getInstance(java.lang.Object obj)
|
static X500Name |
getInstance(X500NameStyle style,
java.lang.Object obj)
|
RDN[] |
getRDNs()
return an array of RDNs in structure order. |
RDN[] |
getRDNs(DERObjectIdentifier attributeType)
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()
|
java.lang.String |
toString()
|
| Methods inherited from class kz.gamma.asn1.ASN1Encodable |
|---|
getDEREncoded, getDERObject, getEncoded, getEncoded |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static X500NameStyle defaultStyle
private boolean isHashCodeCalculated
private int hashCodeValue
private X500NameStyle style
private RDN[] rdns
| Constructor Detail |
|---|
public X500Name(X500NameStyle style,
X500Name name)
private X500Name(ASN1Sequence seq)
private X500Name(X500NameStyle style,
ASN1Sequence seq)
public X500Name(RDN[] rDNs)
public X500Name(X500NameStyle style,
RDN[] rDNs)
public X500Name(java.lang.String dirName)
public X500Name(X500NameStyle style,
java.lang.String dirName)
| Method Detail |
|---|
public static X500Name getInstance(ASN1TaggedObject obj,
boolean explicit)
obj - tag object holding name.explicit - true if explicitly tagged false otherwise.
public static X500Name getInstance(java.lang.Object obj)
public static X500Name getInstance(X500NameStyle style,
java.lang.Object obj)
public RDN[] getRDNs()
public DERObjectIdentifier[] getAttributeTypes()
public RDN[] getRDNs(DERObjectIdentifier attributeType)
attributeType - the type OID we are looking for.
public DERObject toASN1Object()
toASN1Object in class ASN1Encodablepublic int hashCode()
hashCode in class ASN1Encodablepublic boolean equals(java.lang.Object obj)
equals in class ASN1Encodablepublic java.lang.String toString()
toString in class java.lang.Objectpublic static void setDefaultStyle(X500NameStyle style)
style - an X500NameStylepublic static X500NameStyle getDefaultStyle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||