public final class ByteArrayGuard
extends java.lang.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 3DES with CBC.
Original author Inderjeet Singh, J2EE Blue Prints Team. Modified to suit JSF needs.
Constructor and Description |
---|
ByteArrayGuard(java.lang.String password)
Constructs a new
ByteArrayGuard using the specified
keyLength , macLength , ivLength . |
Modifier and Type | Method and Description |
---|---|
javax.crypto.Cipher |
getDecryptionCipher() |
javax.crypto.Cipher |
getEncryptionCipher() |
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.