All Packages Class Hierarchy This Package Previous Next Index
Class iaik.asn1.structures.GeneralNames
java.lang.Object
|
+----iaik.asn1.structures.GeneralNames
- public class GeneralNames
- extends Object
- implements ASN1Type
This class implements the ASN1. type "GeneralNames".
-
GeneralNames()
- Default constructor.
-
GeneralNames(ASN1Object)
- Constructs a GeneralNames object form an ASN1Object.
-
addName(GeneralName)
- Adds a GeneralName to the list of general names.
-
decode(ASN1Object)
-
-
getNames()
- Returns an enumeration of the general names.
-
removeAllNames()
- Removes all genereal names from the list.
-
toASN1Object()
- Returns this GeneralNames object as ASN1Object.
-
toString()
- Returns a string that represents the contents of the extensions.
GeneralNames
public GeneralNames()
- Default constructor. Creates an empty object.
GeneralNames
public GeneralNames(ASN1Object obj) throws CodingException
- Constructs a GeneralNames object form an ASN1Object.
- Parameters:
- obj - the GeneralNames as ASN1Object
- Throws: CodingException
- if the ASN1Object is no GerneralNames type
decode
public void decode(ASN1Object obj) throws CodingException
addName
public void addName(GeneralName name)
- Adds a GeneralName to the list of general names.
- Parameters:
- name - the name to add
removeAllNames
public void removeAllNames()
- Removes all genereal names from the list.
getNames
public Enumeration getNames()
- Returns an enumeration of the general names.
toASN1Object
public ASN1Object toASN1Object()
- Returns this GeneralNames object as ASN1Object.
- Returns:
- the value of GeneralNames as ASN1Object
toString
public String toString()
- Returns a string that represents the contents of the extensions.
- Returns:
- the string representation
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index