enum with encrypting types
More...
|
| EAlgorithm ( @Nonnull final String p_cipher, @Nonnull final String p_key) |
| ctor More...
|
|
final Pair< Key, Key > | generateKey () throws NoSuchAlgorithmException |
| generates a key More...
|
|
final Cipher | getDecryptCipher ( @Nonnull final Key p_key) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException |
|
final Cipher | getEncryptCipher ( @Nonnull final Key p_key) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException |
| returns encrypt cipher More...
|
|
|
| AES =( "AES/ECB/PKCS5Padding", "AES" ) |
|
| DES =( "DES/ECB/PKCS5Padding", "DES" ) |
|
| RSA =( "RSA/ECB/PKCS1Padding", "RSA" ) |
|
Definition at line 46 of file EAlgorithm.java.
◆ EAlgorithm()
org.lightjason.agentspeak.action.builtin.crypto.EAlgorithm.EAlgorithm |
( |
@Nonnull final String |
p_cipher, |
|
|
@Nonnull final String |
p_key |
|
) |
| |
- Parameters
-
p_cipher | chipher name |
p_key | name of the key |
Definition at line 67 of file EAlgorithm.java.
◆ from()
static EAlgorithm org.lightjason.agentspeak.action.builtin.crypto.EAlgorithm.from |
( |
@Nonnull final String |
p_value | ) |
|
|
static |
◆ generateKey()
final Pair<Key, Key> org.lightjason.agentspeak.action.builtin.crypto.EAlgorithm.generateKey |
( |
| ) |
throws NoSuchAlgorithmException |
◆ getDecryptCipher()
final Cipher org.lightjason.agentspeak.action.builtin.crypto.EAlgorithm.getDecryptCipher |
( |
@Nonnull final Key |
p_key | ) |
throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException |
- Parameters
-
- Returns
- cipher
- Exceptions
-
NoSuchPaddingException | on padding error |
NoSuchAlgorithmException | on algorithm error |
InvalidKeyException | on key invalid |
Definition at line 127 of file EAlgorithm.java.
◆ getEncryptCipher()
final Cipher org.lightjason.agentspeak.action.builtin.crypto.EAlgorithm.getEncryptCipher |
( |
@Nonnull final Key |
p_key | ) |
throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException |
- Parameters
-
- Returns
- cipher
- Exceptions
-
NoSuchPaddingException | on padding error |
NoSuchAlgorithmException | on algorithm error |
InvalidKeyException | on key invalid |
Definition at line 109 of file EAlgorithm.java.
◆ AES
org.lightjason.agentspeak.action.builtin.crypto.EAlgorithm.AES =( "AES/ECB/PKCS5Padding", "AES" ) |
◆ DES
org.lightjason.agentspeak.action.builtin.crypto.EAlgorithm.DES =( "DES/ECB/PKCS5Padding", "DES" ) |
◆ m_cipher
final String org.lightjason.agentspeak.action.builtin.crypto.EAlgorithm.m_cipher |
|
private |
◆ m_key
final String org.lightjason.agentspeak.action.builtin.crypto.EAlgorithm.m_key |
|
private |
◆ RSA
org.lightjason.agentspeak.action.builtin.crypto.EAlgorithm.RSA =( "RSA/ECB/PKCS1Padding", "RSA" ) |