private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { in . defaultReadObject ( ) ; try { Field client = getClass ( ) . getDeclaredField ( "client" ) ; client . setAccessible ( true ) ; client . set ( this , buildClient ( trustSelfSigned ) ) ; } catch ( NoSuchFieldException e ) { throw new InternalConfigurationException ( "Failed to set client fields" , e ) ; } catch ( IllegalAccessException e ) { throw new InternalConfigurationException ( "Failed to set client fields" , e ) ; } catch ( SecurityException e ) { throw new InternalConfigurationException ( "Failed to set client fields" , e ) ; } catch ( IllegalArgumentException e ) { throw new InternalConfigurationException ( "Failed to set client fields" , e ) ; } }
Deserialization . Sets up an HTTP client instance .