org.glite.security.util.namespace
Class LegacyNamespaceFormat

java.lang.Object
  extended by org.glite.security.util.namespace.NamespaceFormat
      extended by org.glite.security.util.namespace.LegacyNamespaceFormat

public class LegacyNamespaceFormat
extends NamespaceFormat

Legacy policy language format. # Globus CA rights access_id_CA X509 '/C=US/O=Globus/CN=Globus Certification Authority' pos_rights globus CA:sign cond_subjects globus '"/C=us/O=Globus/*" "/C=US/O=Globus/*"'

Author:
alyu

Constructor Summary
LegacyNamespaceFormat()
          The constructor to create an empty namespace.
 
Method Summary
 void parse(java.lang.String filename)
          Parses a namespaces file.
 
Methods inherited from class org.glite.security.util.namespace.NamespaceFormat
getPolices, getVersion, setVersion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyNamespaceFormat

public LegacyNamespaceFormat()
The constructor to create an empty namespace.

Method Detail

parse

public void parse(java.lang.String filename)
           throws java.io.IOException,
                  java.text.ParseException
Parses a namespaces file.

Specified by:
parse in class NamespaceFormat
Parameters:
filename - filename of the namespaces file
Throws:
java.io.IOException - if unsuccessful
java.text.ParseException - if the namespaces file format is incorrect