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