org.apache.webdav.lib
Class Authenticator

java.lang.Object
  |
  +--org.apache.webdav.lib.Authenticator

public class Authenticator
extends java.lang.Object

Authenticate helper.

Author:
Remy Maucherat

Field Summary
protected static Base64 base64
          Base 64 encoder.
 
Constructor Summary
Authenticator()
           
 
Method Summary
static java.lang.String basic(State state, Credentials credentials)
          Generate a basic response.
static java.lang.String challengeResponse(State state, Credentials credentials)
          Generate a response to the given challenge.
static java.lang.String digest(State state, Credentials credentials)
          Generate a basic response.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

base64

protected static Base64 base64
Base 64 encoder.
Constructor Detail

Authenticator

public Authenticator()
Method Detail

challengeResponse

public static java.lang.String challengeResponse(State state,
                                                 Credentials credentials)
                                          throws WebdavException
Generate a response to the given challenge.
Parameters:
state - State
credentials - Credentials to use to answser the challenge
Returns:
String response to the challenge

basic

public static java.lang.String basic(State state,
                                     Credentials credentials)
Generate a basic response.
Parameters:
credentials - Credentials to use to answser the challenge

digest

public static java.lang.String digest(State state,
                                      Credentials credentials)
Generate a basic response.
Parameters:
credentials - Credentials to use to answser the challenge