org.apache.cxf.transport.http
Class DigestAuthSupplier
java.lang.Object
org.apache.cxf.transport.http.HttpAuthSupplier
org.apache.cxf.transport.http.DigestAuthSupplier
public class DigestAuthSupplier
- extends HttpAuthSupplier
|
Method Summary |
static java.lang.String |
createCnonce()
|
java.lang.String |
getAuthorizationForRealm(HTTPConduit conduit,
java.net.URL currentURL,
org.apache.cxf.message.Message message,
java.lang.String realm,
java.lang.String fullHeader)
The HTTPConduit makes a call to this method if it
receives a 401 response to a particular URL for
a given message. |
java.lang.String |
getPreemptiveAuthorization(HTTPConduit conduit,
java.net.URL currentURL,
org.apache.cxf.message.Message message)
The HTTPConduit makes a call to this method before connecting
to the server behind a particular URL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DigestAuthSupplier
public DigestAuthSupplier()
getAuthorizationForRealm
public java.lang.String getAuthorizationForRealm(HTTPConduit conduit,
java.net.URL currentURL,
org.apache.cxf.message.Message message,
java.lang.String realm,
java.lang.String fullHeader)
- Description copied from class:
HttpAuthSupplier
- The HTTPConduit makes a call to this method if it
receives a 401 response to a particular URL for
a given message. The realm information is taken
from the "WWW-Authenticate: ???? realm=?????"
header. The current message may be retransmitted
if this call returns a Authorization. The current message will
fail with a 401 if null is returned. If no Authorization is available
for this particular URL, realm, and message, then null
should be returned.
- Specified by:
getAuthorizationForRealm in class HttpAuthSupplier
- Parameters:
conduit - The conduit making the call.currentURL - The current URL from which the reponse came.message - The CXF Message.realm - The realm extraced from the basic auth header.fullHeader - The full WWW-Authenticate header
- Returns:
getPreemptiveAuthorization
public java.lang.String getPreemptiveAuthorization(HTTPConduit conduit,
java.net.URL currentURL,
org.apache.cxf.message.Message message)
- Description copied from class:
HttpAuthSupplier
- The HTTPConduit makes a call to this method before connecting
to the server behind a particular URL. If this implementation does not
have a Authorization for this URL, it should return null.
- Specified by:
getPreemptiveAuthorization in class HttpAuthSupplier
- Parameters:
conduit - The HTTPConduit making the call.currentURL - The URL to which the request is to be made.message - The CXF Message.
- Returns:
- This method returns null if no Authorization is available.
createCnonce
public static java.lang.String createCnonce()
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
Apache CXF