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