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