org.apache.cxf.transport.http.auth
Class DefaultBasicAuthSupplier
java.lang.Object
org.apache.cxf.transport.http.auth.DefaultBasicAuthSupplier
- All Implemented Interfaces:
- HttpAuthSupplier
public final class DefaultBasicAuthSupplier
- extends Object
- implements HttpAuthSupplier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBasicAuthSupplier
public DefaultBasicAuthSupplier()
requiresRequestCaching
public boolean requiresRequestCaching()
- Description copied from interface:
HttpAuthSupplier
- If the supplier requires the request to be cached to be resent, return true
- Specified by:
requiresRequestCaching
in interface HttpAuthSupplier
getBasicAuthHeader
public static String getBasicAuthHeader(String userName,
String passwd)
getAuthorization
public String getAuthorization(AuthorizationPolicy authPolicy,
URL currentURL,
Message message,
String fullHeader)
- Description copied from interface:
HttpAuthSupplier
- The HTTPConduit makes a call to this method to obtain
an Authentication token for http authentication.
- Specified by:
getAuthorization
in interface HttpAuthSupplier
- Parameters:
authPolicy
- credentials for the authenticationcurrentURL
- The URL we want to connect tomessage
- The CXF MessagefullHeader
- The full WWW-Authenticate header or null if preemptive auth
- Returns:
- token for Authenticate string or null if authentication is not possible
Apache CXF