1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.tck.security; |
12 | |
|
13 | |
import org.mule.api.EncryptionStrategy; |
14 | |
import org.mule.api.lifecycle.InitialisationException; |
15 | |
import org.mule.api.security.CryptoFailureException; |
16 | |
|
17 | |
import java.io.ByteArrayInputStream; |
18 | |
import java.io.InputStream; |
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | 0 | public class MockEncryptionStrategy extends Named implements EncryptionStrategy |
24 | |
{ |
25 | |
|
26 | |
public byte[] encrypt(byte[] data, Object info) throws CryptoFailureException |
27 | |
{ |
28 | 0 | return new byte[0]; |
29 | |
} |
30 | |
|
31 | |
public byte[] decrypt(byte[] data, Object info) throws CryptoFailureException |
32 | |
{ |
33 | 0 | return new byte[0]; |
34 | |
} |
35 | |
|
36 | |
public void initialise() throws InitialisationException |
37 | |
{ |
38 | |
|
39 | 0 | } |
40 | |
|
41 | |
public InputStream decrypt(InputStream data, Object info) throws CryptoFailureException |
42 | |
{ |
43 | 0 | return new ByteArrayInputStream(new byte[0]); |
44 | |
} |
45 | |
|
46 | |
public InputStream encrypt(InputStream data, Object info) throws CryptoFailureException |
47 | |
{ |
48 | 0 | return new ByteArrayInputStream(new byte[0]); |
49 | |
} |
50 | |
|
51 | |
} |