All Packages Class Hierarchy This Package Previous Next Index
Class iaik.asn1.structures.Name
java.lang.Object
|
+----iaik.asn1.structures.Name
- public class Name
- extends Object
- implements Principal, ASN1Type
This class represents a X.500 Name structure.
A X.500 name consists of OBJECT IDENTIFIER - value assertions. For
example: ObjectID.country = "AT".
-
Name()
- The default constructor.
-
Name(ASN1Object)
- Constructs a Name from an ASN1Object.
-
addRDN(ObjectID, String)
- Adds a RelativeDistinguishedName to this Name.
-
addRDN(RDN)
- Adds a RelativeDistinguishedName to this Name.
-
decode(ASN1Object)
-
-
equals(Object)
- Compares this Name to the specified object.
-
getName()
-
-
getRDN(ObjectID)
- Returns the value assigned to a given ObjectID.
-
toASN1Object()
- Returns this Name as ASN1Object.
-
toString()
- Returns a string that represents this Name.
Name
public Name()
- The default constructor.
Name
public Name(ASN1Object obj) throws CodingException
- Constructs a Name from an ASN1Object.
The ASN1Object could be the ASN.1 type "Sequence of RelativeDistinguishedName"
or only a SET if there would be just one element in the Sequence.
- Parameters:
- obj - the ASN1Object of type SEQUENCE or SET
- Throws: CodingException
- if the ASN1Object has the wrong format
decode
public void decode(ASN1Object obj) throws CodingException
getRDN
public String getRDN(ObjectID oid)
- Returns the value assigned to a given ObjectID.
- Parameters:
- oid, - whose value should be returned
- Returns:
- the value of the ObjectID
addRDN
public void addRDN(ObjectID oid,
String value)
- Adds a RelativeDistinguishedName to this Name.
- Parameters:
- oid - the ObjectID of the RDN
- value - the value of the RDN
addRDN
public void addRDN(RDN rdn)
- Adds a RelativeDistinguishedName to this Name.
- Parameters:
- rdn - the RDN
toASN1Object
public ASN1Object toASN1Object()
- Returns this Name as ASN1Object.
- Returns:
- this Name as ASN1Object
equals
public boolean equals(Object obj)
- Compares this Name to the specified object.
- Parameters:
- obj - - the object to compare this Name against.
- Returns:
- true, if the object represents the same name
false otherwise
- Overrides:
- equals in class Object
getName
public String getName()
toString
public String toString()
- Returns a string that represents this Name.
- Returns:
- the string representation
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index