24 package org.lightjason.agentspeak.action.builtin.crypto;
26 import org.apache.commons.lang3.tuple.Pair;
34 import javax.annotation.Nonnegative;
35 import javax.annotation.Nonnull;
36 import java.security.Key;
37 import java.security.NoSuchAlgorithmException;
38 import java.util.List;
39 import java.util.Objects;
69 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
74 final Pair<Key, Key> l_key =
EAlgorithm.
from( p_argument.get( 0 ).<String>raw() ).generateKey();
77 if ( Objects.nonNull( l_key.getRight() ) )
82 catch (
final NoSuchAlgorithmException | IllegalArgumentException l_exception )
base class of build-in actions for setting name by package/classname (without prefix character) ...
final int minimalArgumentNumber()
minimum number of arguments
creates an encrypting / decrypting key pair.
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
static final long serialVersionUID
serial id
execution context with local data
static EAlgorithm from( @Nonnull final String p_value)
additional factory
enum with encrypting types
result for an immutable fuzzy value
final IFuzzyValue< Boolean > execute(final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
defines a plan-body operation
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
term structure for simple datatypes