Package com.subaio.fintechbridge
Class NativeRequestHandler
java.lang.Object
com.subaio.fintechbridge.RequestHandler
com.subaio.fintechbridge.NativeRequestHandler
Request handle for native SSL pinning only.
SSL pinning will be disabled for API level <24
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenhanceConnection(HttpsURLConnection connection) Modify the connection-object before it is opened.booleanDetermines whether the requesthandler is used.Methods inherited from class com.subaio.fintechbridge.RequestHandler
getDefaultError, getFlattenedHeaders, handle, setHeaders
-
Constructor Details
-
NativeRequestHandler
public NativeRequestHandler()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Description copied from class:RequestHandlerDetermines whether the requesthandler is used. Defaults to checking for SDKs below 24, since this is where native SSL pinning was added.- Overrides:
isEnabledin classRequestHandler- Returns:
- Is request handling necessary
-
enhanceConnection
Description copied from class:RequestHandlerModify the connection-object before it is opened.- Specified by:
enhanceConnectionin classRequestHandler
-