ClintHeyer.Httpd
Class BasicLock

Basic authentication.

Field Summary
string crypt
string password
string realm
string user

Fields inherited from class ClintHeyer.Httpd.Lock
scheme

Constructor Summary
BasicLock(string realm, string user, string password)
         Constructor

Property Summary
string Realm
         Gets the realm

Method Summary
string GetAuthString(ClintHeyer.Httpd.HttpRequest request)
         Gets the auth string to send to client
bool Unlock(ClintHeyer.Httpd.HttpRequest request, object key)
         Unlock a resource

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


Field Detail

crypt

private string crypt


password

private string password


realm

private string realm


user

private string user

Constructor Detail

BasicLock

public BasicLock(string realm,
                 string user,
                 string password)

Constructor

Parameters:
realm - Realm
user - User
password - Password
Property Detail

Realm

public string Realm

Gets the realm

Method Detail

GetAuthString

public string GetAuthString(ClintHeyer.Httpd.HttpRequest request)

Gets the auth string to send to client

Parameters:
request -
Returns:

Unlock

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

Unlock a resource

Parameters:
request - Request
key - Key
Returns:
True if unlocked