Class NoopEncrypter

  • All Implemented Interfaces:
    Encrypter

    public class NoopEncrypter
    extends java.lang.Object
    implements Encrypter
    Noop encrypter implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      NoopEncrypter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String encrypt​(java.lang.String payload)
      Encripts the specified payload.
      java.lang.String getAlgorithm()
      Returns the algorithm name of the encrypter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoopEncrypter

        public NoopEncrypter()
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
        Description copied from interface: Encrypter
        Returns the algorithm name of the encrypter.
        Specified by:
        getAlgorithm in interface Encrypter
        Returns:
        the name of the algorithm
      • encrypt

        public java.lang.String encrypt​(java.lang.String payload)
        Description copied from interface: Encrypter
        Encripts the specified payload.
        Specified by:
        encrypt in interface Encrypter
        Parameters:
        payload - the payload to be encrypted
        Returns:
        ciphertext