Coverage Report - org.mule.tck.security.MockEncryptionStrategy
 
Classes in this File Line Coverage Branch Coverage Complexity
MockEncryptionStrategy
0%
0/6
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 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  
  * Empty mock for tests
 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  
         // nothing to do
 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  
 }