public static HFCAClient createNewInstance ( NetworkConfig . CAInfo caInfo , CryptoSuite cryptoSuite ) throws MalformedURLException , InvalidArgumentException { if ( null == caInfo ) { throw new InvalidArgumentException ( "The caInfo parameter can not be null." ) ; } if ( null == cryptoSuite ) { throw new InvalidArgumentException ( "The cryptoSuite parameter can not be null." ) ; } HFCAClient ret = new HFCAClient ( caInfo . getCAName ( ) , caInfo . getUrl ( ) , caInfo . getProperties ( ) ) ; ret . setCryptoSuite ( cryptoSuite ) ; return ret ; }
Create HFCAClient from a NetworkConfig . CAInfo