Class NativeRequestHandler

java.lang.Object
com.subaio.fintechbridge.RequestHandler
com.subaio.fintechbridge.NativeRequestHandler

public class NativeRequestHandler
extends RequestHandler
Request handle for native SSL pinning only. SSL pinning will be disabled for API level <24
  • Constructor Summary

    Constructors 
    Constructor Description
    NativeRequestHandler()  
  • Method Summary

    Modifier and Type Method Description
    void enhanceConnection​(javax.net.ssl.HttpsURLConnection connection)
    Modify the connection-object before it is opened.
    boolean isEnabled()
    Determines whether the requesthandler is used.

    Methods inherited from class com.subaio.fintechbridge.RequestHandler

    getDefaultError, getFlattenedHeaders, handle, setHeaders

    Methods inherited from class java.lang.Object

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

  • Method Details

    • isEnabled

      public boolean isEnabled()
      Description copied from class: RequestHandler
      Determines whether the requesthandler is used. Defaults to checking for SDKs below 24, since this is where native SSL pinning was added.
      Overrides:
      isEnabled in class RequestHandler
      Returns:
      Is request handling necessary
    • enhanceConnection

      public void enhanceConnection​(@NonNull javax.net.ssl.HttpsURLConnection connection)
      Description copied from class: RequestHandler
      Modify the connection-object before it is opened.
      Specified by:
      enhanceConnection in class RequestHandler