com.caucho.quercus.lib.curl
Class Authentication

java.lang.Object
  extended by com.caucho.quercus.lib.curl.Authentication

public class Authentication
extends java.lang.Object


Constructor Summary
Authentication()
           
 
Method Summary
static java.lang.String basic(java.lang.String usernamePassword)
           
static java.lang.String basic(java.lang.String user, java.lang.String pass)
          Returns a basic encoded response string.
static java.lang.String digest(java.lang.String user, java.lang.String pass, java.lang.String requestMethod, java.lang.String uri, java.lang.String header)
          Returns a digest encoded response string.
static java.lang.String getAuthorization(java.lang.String user, java.lang.String pass, java.lang.String requestMethod, java.lang.String uri, java.lang.String header)
          Returns an authorization response string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authentication

public Authentication()
Method Detail

getAuthorization

public static java.lang.String getAuthorization(java.lang.String user,
                                                java.lang.String pass,
                                                java.lang.String requestMethod,
                                                java.lang.String uri,
                                                java.lang.String header)
Returns an authorization response string. Supports digest and basic only.


basic

public static java.lang.String basic(java.lang.String user,
                                     java.lang.String pass)
Returns a basic encoded response string.


basic

public static java.lang.String basic(java.lang.String usernamePassword)

digest

public static java.lang.String digest(java.lang.String user,
                                      java.lang.String pass,
                                      java.lang.String requestMethod,
                                      java.lang.String uri,
                                      java.lang.String header)
Returns a digest encoded response string.