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