class Arachnid::AuthStore
- Arachnid::AuthStore
- Reference
- Object
Defined in:
arachnid/auth_store.crInstance Method Summary
-
#[](url)
Given a URL, return the most specific matching auth credential.
-
#[]=(url, auth)
Add an auth credential to the store for the supplied base URL.
-
#add(url, username, password)
Convenience method to add username and password credentials for a named URL.
-
#clear!
Clear the contents of the auth store.
-
#for_url(url)
Returns the base64 encoded authorization string for the URL or
nil
if no authorization exists. -
#inspect
Inspect the auth store
-
#size
Size of the current auth store (number of URL paths stored)
Instance Method Detail
def add(url, username, password)
#
Convenience method to add username and password credentials for a named URL.
def for_url(url)
#
Returns the base64 encoded authorization string for the URL
or nil
if no authorization exists.