Class OAbstractEncryption

java.lang.Object
com.orientechnologies.orient.core.encryption.impl.OAbstractEncryption
All Implemented Interfaces:
OEncryption
Direct Known Subclasses:
OAESEncryption, ODESEncryption

public abstract class OAbstractEncryption extends Object implements OEncryption
* (https://docs.oracle.com/javase/7/docs/technotes/guides/security/SunProviders.html). Issue https://github.com/orientechnologies/orientdb/issues/89.
Author:
giastfader
  • Constructor Details

    • OAbstractEncryption

      public OAbstractEncryption()
  • Method Details

    • encryptOrDecrypt

      public abstract byte[] encryptOrDecrypt(int mode, byte[] input, int offset, int length) throws Exception
      *
      Parameters:
      mode - it can be Cipher.ENCRYPT_MODE or Cipher.DECRYPT_MODE
      input -
      offset -
      length -
      Returns:
      Throws:
      Throwable
      Exception
    • encrypt

      public byte[] encrypt(byte[] content)
      Specified by:
      encrypt in interface OEncryption
    • decrypt

      public byte[] decrypt(byte[] content)
      Specified by:
      decrypt in interface OEncryption
    • encrypt

      public byte[] encrypt(byte[] content, int offset, int length)
      Specified by:
      encrypt in interface OEncryption
    • decrypt

      public byte[] decrypt(byte[] content, int offset, int length)
      Specified by:
      decrypt in interface OEncryption