Class DigestAuthSupplier
- java.lang.Object
-
- org.apache.cxf.transport.http.auth.DigestAuthSupplier
-
- All Implemented Interfaces:
HttpAuthSupplier
public class DigestAuthSupplier extends Object implements HttpAuthSupplier
-
-
Constructor Summary
Constructors Constructor Description DigestAuthSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createCnonce()
String
getAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy, URI currentURI, org.apache.cxf.message.Message message, String fullHeader)
The HTTPConduit makes a call to this method to obtain an Authentication token for http authentication.boolean
requiresRequestCaching()
If the supplier requires the request to be cached to be resent, return true
-
-
-
Method Detail
-
requiresRequestCaching
public boolean requiresRequestCaching()
If the supplier requires the request to be cached to be resent, return true With digest, the nonce could expire and thus a rechallenge will be issued. Thus, we need requests cached to be able to handle that- Specified by:
requiresRequestCaching
in interfaceHttpAuthSupplier
-
getAuthorization
public String getAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy, URI currentURI, org.apache.cxf.message.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 interfaceHttpAuthSupplier
- Parameters:
authPolicy
- credentials for the authenticationcurrentURI
- The URI 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
-
createCnonce
public String createCnonce()
-
-