public static final KeyPair createKeyPair(AlgorithmParameterSpec spec) throws GeneralSecurityException {
		KeyPairGenerator keyGen = KeyPairGenerator.getInstance(ALGORITHM);
	    keyGen.initialize(spec, new SecureRandom());
		return keyGen.generateKeyPair();
	}
public static final KeyPair createKeyPair ( AlgorithmParameterSpec spec ) throws GeneralSecurityException { KeyPairGenerator keyGen = KeyPairGenerator . getInstance ( ALGORITHM ) ; keyGen . initialize ( spec , new SecureRandom ( ) ) ; return keyGen . generateKeyPair ( ) ; }
<p>Creates and returns an ECDH key pair for the given parameter specification.</p>
@param spec
@return
@throws GeneralSecurityException