org.glite.security.util
Class Namespace

java.lang.Object
  extended by org.glite.security.util.Namespace

public class Namespace
extends java.lang.Object

The namespace definition for a CA.

Author:
Joni Hahkala "joni.hahkala@cern.ch"

Constructor Summary
Namespace(java.io.BufferedReader in)
          Constructs a namespace from the input.
 
Method Summary
 NamespaceRule[] getRules()
          Returns the set of rules.
 java.lang.String toString()
          Returns a String representation of the namespace rules.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Namespace

public Namespace(java.io.BufferedReader in)
          throws java.io.IOException
Constructs a namespace from the input. This constructor generates the namespace by reading the set of rules from the input. Throws IllegalArgumentException in case there is something wrong in a rule.

Parameters:
in - the buffer to read for the namespaces.
Throws:
java.io.IOException - thrown in case there is an error reading the file.
Method Detail

getRules

public NamespaceRule[] getRules()
Returns the set of rules.

Returns:
The set of rules.

toString

public java.lang.String toString()
Returns a String representation of the namespace rules.

Overrides:
toString in class java.lang.Object
Returns:
The string containing the (possibly multiple lines of) rules.