Class SpnegoAuthSupplier
java.lang.Object
org.apache.cxf.transport.http.auth.AbstractSpnegoAuthSupplier
org.apache.cxf.transport.http.auth.SpnegoAuthSupplier
- All Implemented Interfaces:
HttpAuthSupplier
-
Field Summary
Fields inherited from class org.apache.cxf.transport.http.auth.AbstractSpnegoAuthSupplier
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAuthorization(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.booleanIf the supplier requires the request to be cached to be resent, return trueMethods inherited from class org.apache.cxf.transport.http.auth.AbstractSpnegoAuthSupplier
decorateSubject, getAuthorization, getCompleteServicePrincipalName, getServiceNameType, getUsernamePasswordHandler, isCredDelegationRequired, isUseCanonicalHostname, setCredDelegation, setLoginConfig, setRealm, setServiceNameType, setServicePrincipalName, setUseCanonicalHostname
-
Constructor Details
-
SpnegoAuthSupplier
public SpnegoAuthSupplier()
-
-
Method Details
-
requiresRequestCaching
public boolean requiresRequestCaching()Description copied from interface:HttpAuthSupplierIf the supplier requires the request to be cached to be resent, return true- Specified by:
requiresRequestCachingin 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:HttpAuthSupplierThe HTTPConduit makes a call to this method to obtain an Authentication token for http authentication.- Specified by:
getAuthorizationin 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
-