Class DPoPInterceptor

java.lang.Object
com.okta.sdk.impl.oauth2.DPoPInterceptor
All Implemented Interfaces:
org.apache.hc.client5.http.classic.ExecChainHandler

public class DPoPInterceptor extends Object implements org.apache.hc.client5.http.classic.ExecChainHandler
Interceptor that handle DPoP handshake during auth and adds DPoP header to regular requests. It is always enabled, but is only active when a DPoP error is received during auth.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hc.core5.http.ClassicHttpResponse
    execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.client5.http.classic.ExecChain.Scope scope, org.apache.hc.client5.http.classic.ExecChain execChain)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DPoPInterceptor

      public DPoPInterceptor()
  • Method Details

    • execute

      public org.apache.hc.core5.http.ClassicHttpResponse execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.client5.http.classic.ExecChain.Scope scope, org.apache.hc.client5.http.classic.ExecChain execChain) throws IOException, org.apache.hc.core5.http.HttpException
      Specified by:
      execute in interface org.apache.hc.client5.http.classic.ExecChainHandler
      Throws:
      IOException
      org.apache.hc.core5.http.HttpException