1
2
3
4
5
6
7 package org.mule.api;
8
9 import org.mule.api.lifecycle.Initialisable;
10 import org.mule.api.security.CryptoFailureException;
11
12 import java.io.InputStream;
13
14
15
16
17
18
19
20
21 public interface EncryptionStrategy extends Initialisable
22 {
23 String getName();
24
25 InputStream encrypt(InputStream data, Object info) throws CryptoFailureException;
26
27 InputStream decrypt(InputStream data, Object info) throws CryptoFailureException;
28
29 byte[] encrypt(byte[] data, Object info) throws CryptoFailureException;
30
31 byte[] decrypt(byte[] data, Object info) throws CryptoFailureException;
32 }