Package com.okta.sdk.impl.oauth2
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.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)
-
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 interfaceorg.apache.hc.client5.http.classic.ExecChainHandler
- Throws:
IOException
org.apache.hc.core5.http.HttpException
-