Apache CXF API

org.apache.cxf.transport.http.auth
Class SpnegoAuthSupplier

java.lang.Object
  extended by org.apache.cxf.transport.http.auth.AbstractSpnegoAuthSupplier
      extended by org.apache.cxf.transport.http.auth.SpnegoAuthSupplier
All Implemented Interfaces:
HttpAuthSupplier

public class SpnegoAuthSupplier
extends AbstractSpnegoAuthSupplier
implements HttpAuthSupplier


Field Summary
 
Fields inherited from class org.apache.cxf.transport.http.auth.AbstractSpnegoAuthSupplier
LOG
 
Constructor Summary
SpnegoAuthSupplier()
           
 
Method Summary
 String getAuthorization(AuthorizationPolicy authPolicy, URL currentURL, 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
 
Methods inherited from class org.apache.cxf.transport.http.auth.AbstractSpnegoAuthSupplier
getAuthorization, getCompleteServicePrincipalName, getUsernamePasswordHandler, isCredDelegationRequired, setCredDelegation, setLoginConfig, setRealm, setServicePrincipalName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpnegoAuthSupplier

public SpnegoAuthSupplier()
Method Detail

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

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 authentication
currentURL - The URL we want to connect to
message - The CXF Message
fullHeader - The full WWW-Authenticate header or null if preemptive auth
Returns:
token for Authenticate string or null if authentication is not possible

Apache CXF API

Apache CXF