Class GenerateKeyHandler
java.lang.Object
nl.martijndwars.webpush.cli.handlers.GenerateKeyHandler
- All Implemented Interfaces:
Handler
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GenerateKeyHandler
-
-
Method Details
-
run
public void run() throws InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException, IOException- Specified by:
runin interfaceHandler- Throws:
InvalidAlgorithmParameterExceptionNoSuchAlgorithmExceptionNoSuchProviderExceptionIOException
-
generateKeyPair
public KeyPair generateKeyPair() throws InvalidAlgorithmParameterException, NoSuchProviderException, NoSuchAlgorithmExceptionGenerate an EC keypair on the prime256v1 curve.
-