question: protected void engineInit ( AlgorithmParameterSpec genParamSpec , SecureRandom random ) throws InvalidAlgorithmParameterException { if ( ! ( genParamSpec instanceof DSAGenParameterSpec ) ) { throw new InvalidAlgorithmParameterException ( "Invalid parameter" ) ; } DSAGenParameterSpec dsaGenParams = ( DSAGenParameterSpec ) genParamSpec ; int primePLen = dsaGenParams . getPrimePLength ( ) ; if ( primePLen > 2048 ) { throw new InvalidParameterException ( "No support for prime size " + primePLen ) ; } this . valueL = primePLen ; this . valueN = dsaGenParams . getSubprimeQLength ( ) ; this . seedLen = dsaGenParams . getSeedLength ( ) ; this . random = random ; }
target:  Initializes this parameter generator with a set of algorithm-specific parameter generation values.