org.pojava.persistence.util
Class WebSafe

java.lang.Object
  extended by org.pojava.persistence.util.WebSafe

public class WebSafe
extends Object

WebSafe is a utility for transforming objects into web-safe strings that can be natively used in XML, HTML, URL's or Cookies. The objects are encrypted so sensitive data cannot be obtained from them.

Author:
John Pile

Constructor Summary
WebSafe(SecretKey key)
          Deprecated. in favor of the String parameter
WebSafe(String keyString)
          Construct a web-safe with a keyString (see EncryptionTool)
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSafe

public WebSafe(String keyString)
        throws InvalidKeyException
Construct a web-safe with a keyString (see EncryptionTool)

Parameters:
key -
Throws:
InvalidKeyException

WebSafe

public WebSafe(SecretKey key)
        throws InvalidKeyException
Deprecated. in favor of the String parameter

Use an externally constructed SecretKey

Parameters:
key -
Throws:
InvalidKeyException


Copyright © 2011. All Rights Reserved.