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