public class SecretKeyFactoryConverter extends AbstractBaseConverter<SecretKeyFactory>
String
into a SecretKeyFactory
.
For a description of the transformation parameter format, see SecretKeyFactory.getInstance(String)
.
To get a SecretKeyFactory from a specific Provider
, use the syntax algorithm:provider
as described by
SecretKeyFactory.getInstance(String, String)
.
Example:
@Parameter(names = { "--secretKeyFactory" }, converter = SecretKeyFactoryConverter.class)
private SecretKeyFactory secretKeyFactory;
SecretKeyFactory
,
SecretKeyFactory.getInstance(String)
,
SecretKeyFactory.getInstance(String, String)
failOnNull, targetClass
Constructor and Description |
---|
SecretKeyFactoryConverter(String optionName)
Constructs a converter.
|
Modifier and Type | Method and Description |
---|---|
protected SecretKeyFactory |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURI
public SecretKeyFactoryConverter(String optionName)
optionName
- The option name, may be null.protected SecretKeyFactory convertImpl(String value) throws NoSuchAlgorithmException, NoSuchPaddingException, NoSuchProviderException
AbstractBaseConverter
convertImpl
in class AbstractBaseConverter<SecretKeyFactory>
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