public static AsymmetricCipherKeyPair generateKeyPairParameter(ECDomainParameters domainParameters,
        SecureRandom random) {
        ECKeyGenerationParameters keyGenerationParams = new ECKeyGenerationParameters(domainParameters,
            random);
        ECKeyPairGenerator keyGen = new ECKeyPairGenerator();
        keyGen.init(keyGenerationParams);
        return keyGen.generateKeyPair();
    }
public static AsymmetricCipherKeyPair generateKeyPairParameter ( ECDomainParameters domainParameters , SecureRandom random ) { ECKeyGenerationParameters keyGenerationParams = new ECKeyGenerationParameters ( domainParameters , random ) ; ECKeyPairGenerator keyGen = new ECKeyPairGenerator ( ) ; keyGen . init ( keyGenerationParams ) ; return keyGen . generateKeyPair ( ) ; }
生成ECC密钥对

@return ECC密钥对