org.sakaiproject.portal.render.portlet.services.state
Class Base64Recoder
java.lang.Object
org.sakaiproject.portal.render.portlet.services.state.Base64Recoder
- All Implemented Interfaces:
- WebRecoder
public class Base64Recoder
- extends Object
- implements WebRecoder
WebRecoder which uses a modified base64 encoding scheme to ensure web safety.
This sheme provides obfuscation as well as websafety.
- Since:
- Sakai 2.2.4
- Version:
- $Rev: 110562 $
|
Method Summary |
byte[] |
decode(String safe)
Decode the bits into a websafe version. |
String |
encode(byte[] bits)
Recode the bits into a websafe version. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64Recoder
public Base64Recoder()
encode
public String encode(byte[] bits)
- Description copied from interface:
WebRecoder
- Recode the bits into a websafe version.
- Specified by:
encode in interface WebRecoder
- Parameters:
bits - the original bits
- Returns:
- websafe version
decode
public byte[] decode(String safe)
- Description copied from interface:
WebRecoder
- Decode the bits into a websafe version.
- Specified by:
decode in interface WebRecoder
- Parameters:
safe - websafe version
- Returns:
- the original encoded bits
Copyright © 2003-2013 Sakai Project. All Rights Reserved.