|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.resources.AttributeHolder org.w3c.tools.resources.Resource org.w3c.tools.resources.FramedResource org.w3c.tools.resources.ResourceFrame org.w3c.tools.resources.ResourceFilter org.w3c.jigsaw.auth.AuthFilter
public class AuthFilter
General authentication filters.
Field Summary | |
---|---|
protected static int |
ATTR_METHODS
Attribute index - The methods protected by the filter. |
protected static int |
ATTR_PRIVATE_CACHABILITY
Attribute index - Is caching allowed in private cache ? |
protected static int |
ATTR_PUBLIC_CACHABILITY
Attribute index - Is public caching of protected documents allowed ? |
protected static int |
ATTR_REALM
Attribute index - The realm name for this filter. |
protected static int |
ATTR_SHARED_CACHABILITY
Attribute index - Is caching allowed by a shared cache ? |
static java.lang.String |
STATE_AUTHCONTEXT
The authentication context used to authenticate the above user FIXME |
static java.lang.String |
STATE_AUTHTYPE
The authentication method used to authenticate above user. |
static java.lang.String |
STATE_AUTHUSER
The user as authentified from the request. |
Fields inherited from class org.w3c.tools.resources.ResourceFrame |
---|
filterClass, frameListener, resource |
Fields inherited from class org.w3c.tools.resources.FramedResource |
---|
ATTR_OID, attrListener, debugEvent, event_disabled, framesRef, structListener |
Fields inherited from class org.w3c.tools.resources.Resource |
---|
ATTR_CONTEXT, ATTR_HELP_URL, ATTR_IDENTIFIER, ATTR_LAST_MODIFIED, ATTR_PARENT, ATTR_RESOURCE_FRAMES, ATTR_STORE_ENTRY, ATTR_URL, co, id |
Fields inherited from class org.w3c.tools.resources.AttributeHolder |
---|
attributes, values |
Constructor Summary | |
---|---|
AuthFilter()
|
Method Summary | |
---|---|
void |
authenticate(Request request)
Authenticate the request from the given client. |
java.lang.String[] |
getMethods()
Get the list of methods that this filter protect |
boolean |
getPrivateCachability()
Is this document cachable in private caches ? |
boolean |
getPublicCachability()
Is this document publicly cachable ? |
java.lang.String |
getRealm()
Get the realm of this filter. |
boolean |
getSharedCachability()
Is this document cachable in shared caches ? |
boolean |
lookup(LookupState ls,
LookupResult lr)
Authenticate the given request for the given client. |
ReplyInterface |
outgoingFilter(RequestInterface request,
ReplyInterface reply)
Add the appropriate cache control directives on the way back. |
Methods inherited from class org.w3c.tools.resources.ResourceFilter |
---|
exceptionFilter, getTargetResource, ingoingFilter, ingoingFilter, initialize, outgoingFilter, outputFilter, pickleValues |
Methods inherited from class org.w3c.tools.resources.ResourceFrame |
---|
addFrameEventListener, attributeChanged, checkRequest, eventDisabled, fireFrameEvent, frameModified, getFilters, getFilters, getFrameReference, getResource, getResourceReference, getSpaceEntry, getURLPath, lookupFilters, lookupFrames, perform, postFrameEvent, processEvent, registerResource, removeFrameEventListener, setValue, unregisterResource, updateDefaultChildAttributes |
Methods inherited from class org.w3c.tools.resources.Resource |
---|
acceptUnload, checkMultipleLock, collectFrames, getContext, getFrame, getFrames, getHelpURL, getHelpURL, getIdentifier, getLastModified, getParent, getServer, getSpace, getStoreEntry, getValue, getValue, isInitialized, isUnloaded, setContext, setContext, setValue, unsafeGetContext, unsafeGetFrame, unsafeGetFrames, unsafeGetIdentifier, unsafeGetResourceReference, unsafeGetURLPath, unsafeGetValue, updateAttributes |
Methods inherited from class org.w3c.tools.resources.AttributeHolder |
---|
definesAttribute, definesAttribute, getAttributes, getBoolean, getChar, getClone, getClone, getDouble, getFloat, getInt, getLong, getString, getValue, lookupAttribute, print, setBoolean, setChar, setDouble, setFloat, setInt, setLong, setString, setValue, unsafeDefinesAttribute, unsafeGetDouble, unsafeGetString |
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 STATE_AUTHUSER
public static final java.lang.String STATE_AUTHTYPE
public static final java.lang.String STATE_AUTHCONTEXT
protected static int ATTR_METHODS
protected static int ATTR_REALM
protected static int ATTR_SHARED_CACHABILITY
protected static int ATTR_PRIVATE_CACHABILITY
protected static int ATTR_PUBLIC_CACHABILITY
Constructor Detail |
---|
public AuthFilter()
Method Detail |
---|
public java.lang.String[] getMethods()
public java.lang.String getRealm()
public boolean getPublicCachability()
public boolean getPrivateCachability()
public boolean getSharedCachability()
public void authenticate(Request request) throws ProtocolException
request
- The request to be handled.
ProtocolException
- If authentication failed.public boolean lookup(LookupState ls, LookupResult lr) throws ProtocolException
lookup
in interface FilterInterface
lookup
in class ResourceFilter
request
- The request.
ProtocolException
- If authentication failed.public ReplyInterface outgoingFilter(RequestInterface request, ReplyInterface reply)
outgoingFilter
in class ResourceFilter
request
- The request that has been processed.reply
- The original reply.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |