public class KeyPairGeneratorConverter extends AbstractBaseConverter<KeyPairGenerator>
String
into a KeyPairGenerator
.
For a description of the format, see KeyPairGenerator.getInstance(String)
.
Example:
@Parameter(names = { "--keyPairGenerator" }, converter = KeyPairGeneratorConverter.class)
private KeyPairGenerator keyPairGenerator;
KeyPairGenerator
,
KeyPairGenerator.getInstance(String)
failOnNull, targetClass
Constructor and Description |
---|
KeyPairGeneratorConverter(String optionName)
Constructs a converter.
|
Modifier and Type | Method and Description |
---|---|
protected KeyPairGenerator |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURI
public KeyPairGeneratorConverter(String optionName)
optionName
- The option name, may be null.protected KeyPairGenerator convertImpl(String value) throws NoSuchAlgorithmException, NoSuchProviderException
AbstractBaseConverter
convertImpl
in class AbstractBaseConverter<KeyPairGenerator>
value
- the value to convertNoSuchAlgorithmException
NoSuchProviderException
Copyright © 2016-2016 Gary Gregory. All Rights Reserved.
Use is subject to The Apache Software License, Version 2.0