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