|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.object.AuthContext
An experimental object used to encapsulate a collection of authorization rules for some external "resource". A resource is any external system or object that can be identified by a string. Typically this string is a URL though this is not a requirement. This was developed as part of early SSO prototypes, it is unclear how this will evolve.
Nested Class Summary | |
static class |
AuthContext.Group
A helper class that represents the collection of authorization definitions associated with a single URL, or wildcard pattern. |
static class |
AuthContext.Member
A helper class that represents a named group member, either a user or another group. |
static class |
AuthContext.UrlAcl
A helper class that represents the collection of authorization definitions associated with a single URL, or wildcard pattern. |
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
ELEMENT
|
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
AuthContext()
|
|
AuthContext(org.w3c.dom.Element e)
|
Method Summary | |
java.lang.String |
getElementName()
Return the element name. |
boolean |
isAuthorized(java.lang.String subject,
java.lang.String url)
Shorthand for simpler checks with a single domain and no query. |
boolean |
isAuthorized(java.lang.String subject,
java.lang.String domain,
java.lang.String url,
java.lang.String query)
Tests access to a particular resource by a subject. |
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize into a buffer with optional indentation. |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String ELEMENT
Constructor Detail |
public AuthContext()
public AuthContext(org.w3c.dom.Element e) throws WavesetException
Method Detail |
public java.lang.String getElementName()
AbstractXmlObject
getElementName
in interface XmlObject
getElementName
in class AbstractXmlObject
public boolean isAuthorized(java.lang.String subject, java.lang.String domain, java.lang.String url, java.lang.String query) throws WavesetException
Returns true if the subject has access to this object, otherwise returns false.
Throws an exception only for internal errors.
WavesetException
public boolean isAuthorized(java.lang.String subject, java.lang.String url) throws WavesetException
WavesetException
public void toXml(java.lang.StringBuffer b, int indent)
AbstractXmlObject
toXml
in interface XmlObject
toXml
in class AbstractXmlObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |