public final class ByteArrayGuard 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 |
---|
ByteArrayGuard() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(FacesContext facesContext,
byte[] bytes)
This method decrypts the provided byte array.
|
byte[] |
encrypt(FacesContext facesContext,
byte[] bytes)
This method:
Encrypts bytes using a cipher.
|
public byte[] encrypt(FacesContext facesContext, byte[] bytes)
bytes
- The byte array to be encrypted.public byte[] decrypt(FacesContext facesContext, byte[] bytes)
bytes
- Encrypted byte array to be decrypted.Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.