Class CodeAuthSupplier

java.lang.Object
org.apache.cxf.rs.security.oauth2.client.CodeAuthSupplier
All Implemented Interfaces:
HttpAuthSupplier

public class CodeAuthSupplier extends Object implements HttpAuthSupplier
  • Constructor Details

    • CodeAuthSupplier

      public CodeAuthSupplier()
  • Method Details

    • 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(org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy, URI currentURI, 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
      currentURI - The URI 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
    • setCode

      public void setCode(String code)
    • setRefreshEarly

      public void setRefreshEarly(boolean refreshEarly)
    • setAccessTokenServiceUri

      public void setAccessTokenServiceUri(String uri)
    • setConsumer

      public void setConsumer(Consumer consumer)