protected void parseParams ( Map < String , String > params ) { generateAlgorithm = indexOf ( PARAM_ALGORITHM , DEFAULT_ALGORITHM , SUPPORTED_ALGORITHMS , params . get ( PARAM_ALGORITHM ) ) ; generateIterations = parseInt ( PARAM_ITERATIONS , params . get ( PARAM_ITERATIONS ) , DEFAULT_ITERATIONS , MINIMUM_ITERATIONS ) ; generateSaltSize = parseInt ( PARAM_SALTSIZE , params . get ( PARAM_SALTSIZE ) , DEFAULT_SALTSIZE , MINIMUM_SALTSIZE ) ; generateKeySize = parseInt ( PARAM_KEYSIZE , params . get ( PARAM_KEYSIZE ) , DEFAULT_KEYSIZE , MINIMUM_KEYSIZE ) ; }
Parse the parameters . If the value is not set set the default if the value is invalid throw InvalidArgumentException