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