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