public class SymmetricEncryption extends Object
Constructor and Description |
---|
SymmetricEncryption() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decryptWithSymmetricKey(byte[] encryptionBytes) |
byte[] |
encryptWithSymmetricKey(byte[] plainText) |
void |
generateSymmetricKey() |
static SymmetricEncryption |
getInstance() |
String |
getSymmetricKeyEncryptEnabled() |
public static SymmetricEncryption getInstance()
public void generateSymmetricKey() throws CryptoException
CryptoException
public byte[] encryptWithSymmetricKey(byte[] plainText) throws CryptoException
CryptoException
public byte[] decryptWithSymmetricKey(byte[] encryptionBytes) throws CryptoException
CryptoException
public String getSymmetricKeyEncryptEnabled()
Copyright © 2016 WSO2 Inc. All rights reserved.