Class PqcTransportInterceptor
java.lang.Object
co.ankatech.ankasecure.sdk.transport.PqcTransportInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
OkHttp Interceptor that transparently encrypts request bodies and decrypts
response bodies when PQC transport encryption is enabled.
Requests without a body (GET, DELETE, etc.) are passed through unchanged. Special paths (handshake, auth, streaming, utility) are also skipped.
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Header that tells the server which KEM algorithm to use.static final String
Header that carries the PQC session identifier.static final String
Header that indicates the payload is PQC-encrypted.Fields inherited from interface okhttp3.Interceptor
Companion
-
Constructor Summary
ConstructorsConstructorDescriptionPqcTransportInterceptor
(PqcTransportConfig config, PqcSessionManager sessionManager) -
Method Summary
-
Field Details
-
HEADER_TRANSPORT
Header that indicates the payload is PQC-encrypted.- See Also:
-
HEADER_SESSION
-
HEADER_KEM
Header that tells the server which KEM algorithm to use.- See Also:
-
-
Constructor Details
-
PqcTransportInterceptor
-
-
Method Details
-
intercept
- Specified by:
intercept
in interfaceokhttp3.Interceptor
- Throws:
IOException
-