- java.lang.Object
-
- io.github.astrapi69.crypt.data.algorithm.CryptoAlgorithm
-
- All Implemented Interfaces:
io.github.astrapi69.crypt.api.algorithm.Algorithm
public class CryptoAlgorithm extends java.lang.Object implements io.github.astrapi69.crypt.api.algorithm.Algorithm
The classCryptoAlgorithm
provides factory method for create an algorithm from string for encryption or decryption.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
name()
Gets the name of this algorithmstatic io.github.astrapi69.crypt.api.algorithm.Algorithm
newAlgorithm(@NonNull java.lang.String algorithm)
Factory method for creating a newAlgorithm
from the given string algorithm
-
-
-
Method Detail
-
newAlgorithm
public static io.github.astrapi69.crypt.api.algorithm.Algorithm newAlgorithm(@NonNull @NonNull java.lang.String algorithm)
Factory method for creating a newAlgorithm
from the given string algorithm- Parameters:
algorithm
- the algorithm- Returns:
- the new
Algorithm
-
name
public java.lang.String name()
Gets the name of this algorithm- Returns:
- the name of this algorithm
-
-