ClintHeyer.Httpd
Class Lock

Lock

Field Summary
ClintHeyer.Httpd.AuthenticationScheme scheme

Constructor Summary
Lock(ClintHeyer.Httpd.AuthenticationScheme scheme)
         Constructor

Method Summary
string GetAuthString(ClintHeyer.Httpd.HttpRequest request)
         Returns an authentication string to be returned to user with error response
bool Unlock(ClintHeyer.Httpd.HttpRequest request, object key)
         Attempt to unlock a lock

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

scheme

protected ClintHeyer.Httpd.AuthenticationScheme scheme

Constructor Detail

Lock

public Lock(ClintHeyer.Httpd.AuthenticationScheme scheme)

Constructor

Parameters:
scheme - Type of lock
Method Detail

GetAuthString

public string GetAuthString(ClintHeyer.Httpd.HttpRequest request)

Returns an authentication string to be returned to user with error response

Parameters:
request - Request for resource
Returns:
Authentication string

Unlock

public bool Unlock(ClintHeyer.Httpd.HttpRequest request,
                   object key)

Attempt to unlock a lock

Parameters:
request - Request for resource
key - Key user has supplied
Returns:
TRUE if unlocked, FALSE if not