org.apache.synapse.commons.crypto

## Class CryptoUtil

- java.lang.Object
- - org.apache.synapse.commons.crypto.CryptoUtil

-     public class CryptoUtil
      extends Object

  This class will provide the required methods to decrypt given encrypted parameter value.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CryptoUtil(Properties secureVaultProperties)` Public constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `decrypt(byte[] encryptedBytes)` Method used to decrypt and encode or decode accordingly.
    `void` | `init(Properties secureVaultProperties)` Method to initialise crypto util.
    `boolean` | `isInitialized()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CryptoUtil

          public CryptoUtil(Properties secureVaultProperties)
                     throws org.apache.axis2.AxisFault

      Public constructor
      Parameters:
        `secureVaultProperties` -
      Throws:
        `org.apache.axis2.AxisFault`

  - ### Method Detail

    - #### init

          public void init(Properties secureVaultProperties)
                    throws org.apache.axis2.AxisFault

      Method to initialise crypto util. which will generate the required chiper etc.
      Parameters:
        `secureVaultProperties` -
      Throws:
        `org.apache.axis2.AxisFault`

    - #### decrypt

          public byte[] decrypt(byte[] encryptedBytes)

      Method used to decrypt and encode or decode accordingly.
      Parameters:
        `encryptedBytes` -
      Returns:
        response

    - #### isInitialized

          public boolean isInitialized()

Copyright © 2005–2017 Apache Software Foundation. All rights reserved.