org.glite.security.util
Class NamespaceRule

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

public class NamespaceRule
extends java.lang.Object

A class that expresses a single rule in the namespace policy. The rules are of format "TO Issuer {DN} {PERMIT,DENY} Subject {regexp}" one per line, with possibility to split into several lines using "\" as a break line character.

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

Method Summary
 DN getIssuer()
          Returns the issuer DN of the rule.
 java.lang.String getMatch()
          Returns the regexp string of the rule.
 boolean isPermit()
          Whether the rule is a permit or deny.
 java.lang.String toString()
          Returns the String representation of the rule.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getIssuer

public DN getIssuer()
Returns the issuer DN of the rule.

Returns:
the issuer DN of the rule.

getMatch

public java.lang.String getMatch()
Returns the regexp string of the rule.

Returns:
the regexp string of the rule.

isPermit

public boolean isPermit()
Whether the rule is a permit or deny.

Returns:
true if permit rule.

toString

public java.lang.String toString()
Returns the String representation of the rule.

Overrides:
toString in class java.lang.Object
Returns:
The rule description as a string.
See Also:
Object.toString()