question: private void initDHKeys ( DistributionConfig config ) throws Exception { dhSKAlgo = config . getSecurityUDPDHAlgo ( ) ; if ( ( dhSKAlgo != null && dhSKAlgo . length ( ) > 0 ) ) { KeyPairGenerator keyGen = KeyPairGenerator . getInstance ( "DH" ) ; DHParameterSpec dhSpec = new DHParameterSpec ( dhP , dhG , dhL ) ; keyGen . initialize ( dhSpec ) ; KeyPair keypair = keyGen . generateKeyPair ( ) ; dhPrivateKey = keypair . getPrivate ( ) ; dhPublicKey = keypair . getPublic ( ) ; } }
target:  Initialize the Diffie-Hellman keys. This method is not thread safe