com.waveset.object
Class AuthContext.UrlAcl
java.lang.Object
com.waveset.object.AuthContext.UrlAcl
- Enclosing class:
- AuthContext
- public static class AuthContext.UrlAcl
- extends java.lang.Object
A helper class that represents the collection of authorization
definitions associated with a single URL, or wildcard pattern.
Method Summary |
java.lang.String |
getRegexp()
|
java.lang.String |
getUrl()
|
boolean |
isAuthorized(java.lang.String name)
Tests to see if a subject is authorized for this object. |
boolean |
isMatch(java.lang.String url)
Tests to see if a url matches the one associated with this
acl object. |
void |
parseXml(org.w3c.dom.Element e)
|
void |
toXml(java.lang.StringBuffer b,
int indent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
ATT_URL
public static final java.lang.String ATT_URL
- See Also:
- Constant Field Values
ATT_REGEXP
public static final java.lang.String ATT_REGEXP
- See Also:
- Constant Field Values
AuthContext.UrlAcl
public AuthContext.UrlAcl()
AuthContext.UrlAcl
public AuthContext.UrlAcl(org.w3c.dom.Element e)
throws WavesetException
getUrl
public java.lang.String getUrl()
getRegexp
public java.lang.String getRegexp()
isMatch
public boolean isMatch(java.lang.String url)
- Tests to see if a url matches the one associated with this
acl object. This should only be called for regular expression
acls, absolute urls will be found by hashing.
isAuthorized
public boolean isAuthorized(java.lang.String name)
- Tests to see if a subject is authorized for this object.
parseXml
public void parseXml(org.w3c.dom.Element e)
throws WavesetException
- Throws:
WavesetException
toXml
public void toXml(java.lang.StringBuffer b,
int indent)