Class EncryptorImpl

java.lang.Object
org.identityconnectors.common.security.impl.EncryptorImpl
All Implemented Interfaces:
Encryptor

public class EncryptorImpl extends Object implements Encryptor
  • Constructor Details

    • EncryptorImpl

      public EncryptorImpl(boolean defaultKey)
  • Method Details

    • decrypt

      public byte[] decrypt(byte[] bytes)
      Description copied from interface: Encryptor
      Decrypts the given byte array.
      Specified by:
      decrypt in interface Encryptor
      Parameters:
      bytes - The encrypted bytes
      Returns:
      The decrypted bytes
    • encrypt

      public byte[] encrypt(byte[] bytes)
      Description copied from interface: Encryptor
      Encrypts the given byte array.
      Specified by:
      encrypt in interface Encryptor
      Parameters:
      bytes - The clear bytes
      Returns:
      The ecnrypted bytes