public final class ByteArrayGuardAESCTR extends Object
This utility class is to provide both encryption and
decryption Ciphers
to ResponseStateManager
implementations wishing to provide encryption support.
The algorithm used to encrypt byte array is AES with CBC.
Original author Inderjeet Singh, J2EE Blue Prints Team. Modified to suit JSF needs.
Constructor and Description |
---|
ByteArrayGuardAESCTR() |
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String value) |
String |
encrypt(String value)
This method:
Encrypts bytes using a cipher.
|
public String encrypt(String value)
bytes
- The byte array to be encrypted.public String decrypt(String value) throws InvalidKeyException
InvalidKeyException
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.