Class Crypto.NoOp

java.lang.Object
org.nuxeo.common.codec.Crypto
org.nuxeo.common.codec.Crypto.NoOp
Enclosing class:
Crypto

public static final class Crypto.NoOp extends Crypto
  • Field Details

    • NO_OP

      public static final Crypto NO_OP
  • Method Details

    • encrypt

      public String encrypt(String algorithm, byte[] bytesToEncrypt)
      Overrides:
      encrypt in class Crypto
      Parameters:
      algorithm - cipher transformation of the form "algorithm/mode/padding" or "algorithm". See the Cipher section in the Java Cryptography Architecture Standard Algorithm Name Documentation.
    • decrypt

      public byte[] decrypt(String strToDecrypt)
      Description copied from class: Crypto
      The method returns either the decrypted strToDecrypt, either the strToDecrypt itself if it is not recognized as a crypted string or if the decryption fails. The return value is a byte array for security purpose, it is your responsibility to convert it then to a String or not (use of char[] is recommended).
      Overrides:
      decrypt in class Crypto
      Returns:
      the decrypted strToDecrypt as an array of bytes, never null
      See Also:
    • clear

      public void clear()
      Description copied from class: Crypto
      Clear sensible values. That makes the current object unusable.
      Overrides:
      clear in class Crypto