Interface Cryptor

    • Method Detail

      • doFinal

        default byte[] doFinal()
        Returns:
        the encrypted (or decrypted) data. May be empty or null.
        See Also:
        Cipher.doFinal()
      • crypt

        default byte[] crypt​(byte[] input,
                             boolean complete)
        Parameters:
        input - the next chunk of data to encrypt or decrypt.
        complete - - true to complete the encryption or decryption in case this is the last chunk of data, false otherwise.
        Returns:
        the encrypted or decrypted data.
        See Also:
        Cipher.update(byte[]), Cipher.doFinal(byte[])
      • crypt

        default byte[] crypt​(CryptoBinary input,
                             boolean complete)
        Parameters:
        input - the next chunk of data to encrypt or decrypt.
        complete - - true to complete the encryption or decryption in case this is the last chunk of data, false otherwise.
        Returns:
        the encrypted or decrypted data.
        See Also:
        Cipher.update(byte[]), Cipher.doFinal(byte[])
      • crypt

        byte[] crypt​(byte[] input,
                     int offset,
                     int length,
                     boolean complete)
        Parameters:
        input - the next chunk of data to encrypt or decrypt.
        offset - the offset where to start in the input array.
        length - the number of bytes to read from the input array.
        complete - - true to complete the encryption or decryption in case this is the last chunk of data, false otherwise.
        Returns:
        the number of bytes that have been written into the output array.
        See Also:
        Cipher.update(byte[], int, int), Cipher.doFinal(byte[], int, int)