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".


Constructor Index

 o GeneralNames()
Default constructor.
 o GeneralNames(ASN1Object)
Constructs a GeneralNames object form an ASN1Object.

Method Index

 o addName(GeneralName)
Adds a GeneralName to the list of general names.
 o decode(ASN1Object)
 o getNames()
Returns an enumeration of the general names.
 o removeAllNames()
Removes all genereal names from the list.
 o toASN1Object()
Returns this GeneralNames object as ASN1Object.
 o toString()
Returns a string that represents the contents of the extensions.

Constructors

 o GeneralNames
 public GeneralNames()
Default constructor. Creates an empty object.

 o 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

Methods

 o decode
 public void decode(ASN1Object obj) throws CodingException
 o addName
 public void addName(GeneralName name)
Adds a GeneralName to the list of general names.

Parameters:
name - the name to add
 o removeAllNames
 public void removeAllNames()
Removes all genereal names from the list.

 o getNames
 public Enumeration getNames()
Returns an enumeration of the general names.

 o toASN1Object
 public ASN1Object toASN1Object()
Returns this GeneralNames object as ASN1Object.

Returns:
the value of GeneralNames as ASN1Object
 o 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