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.transformer.encryption; 8 9 import org.mule.api.security.CryptoFailureException; 10 11 import java.io.InputStream; 12 13 /** 14 * <code>EncryptionTransformer</code> will transform an encrypted array of bytes or 15 * string into an decrypted array of bytes 16 */ 17 public class DecryptionTransformer extends AbstractEncryptionTransformer 18 { 19 @Override 20 protected InputStream primTransform(InputStream input) throws CryptoFailureException 21 { 22 return getStrategy().decrypt(input, null); 23 } 24 }