Module crypt.data

Class 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 class CryptoAlgorithm 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 algorithm
      static io.github.astrapi69.crypt.api.algorithm.Algorithm newAlgorithm​(@NonNull java.lang.String algorithm)
      Factory method for creating a new Algorithm from the given string algorithm
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.github.astrapi69.crypt.api.algorithm.Algorithm

        getAlgorithm
    • Method Detail

      • newAlgorithm

        public static io.github.astrapi69.crypt.api.algorithm.Algorithm newAlgorithm​(@NonNull
                                                                                     @NonNull java.lang.String algorithm)
        Factory method for creating a new Algorithm 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