public class KeyGeneratorConverter extends AbstractBaseConverter<KeyGenerator>
String into a KeyGenerator.
For a description of the transformation parameter format, see KeyGenerator.getInstance(String).
To get a KeyGenerator from a specific Provider, use the syntax algorithm:provider as described by
KeyGenerator.getInstance(String, String).
Example:
@Parameter(names = { "--keyGenerator" }, converter = KeyGeneratorConverter.class)
private KeyGenerator keyGenerator;
KeyGenerator,
KeyGenerator.getInstance(String),
KeyGenerator.getInstance(String, String)failOnNull, targetClass| Constructor and Description |
|---|
KeyGeneratorConverter(String optionName)
Constructs a converter.
|
| Modifier and Type | Method and Description |
|---|---|
protected KeyGenerator |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURIpublic KeyGeneratorConverter(String optionName)
optionName - The option name, may be null.protected KeyGenerator convertImpl(String value) throws NoSuchAlgorithmException, NoSuchPaddingException, NoSuchProviderException
AbstractBaseConverterconvertImpl in class AbstractBaseConverter<KeyGenerator>value - the value to convertNoSuchAlgorithmExceptionNoSuchPaddingExceptionNoSuchProviderExceptionCopyright © 2016-2016 Gary Gregory. All Rights Reserved.
Use is subject to The Apache Software License, Version 2.0