com.sun.faces.renderkit
Class ByteArrayGuard

java.lang.Object
  extended by com.sun.faces.renderkit.ByteArrayGuard

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 Summary
ByteArrayGuard(java.lang.String password)
          Constructs a new ByteArrayGuard using the specified keyLength, macLength, ivLength.
 
Method Summary
 javax.crypto.Cipher getDecryptionCipher()
           
 javax.crypto.Cipher getEncryptionCipher()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayGuard

public ByteArrayGuard(java.lang.String password)
Constructs a new ByteArrayGuard using the specified keyLength, macLength, ivLength.

Parameters:
password - the password to seed the encryption
Method Detail

getEncryptionCipher

public javax.crypto.Cipher getEncryptionCipher()

getDecryptionCipher

public javax.crypto.Cipher getDecryptionCipher()


Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.