org.ajax4jsf.util.base64
Class Codec
java.lang.Object
org.ajax4jsf.util.base64.Codec
public class Codec
- extends java.lang.Object
- Version:
- $Revision: 1.1.2.1 $ $Date: 2007/01/09 18:59:10 $
- Author:
- shura (latest modification by $Author: alexsmirnov $)
Constructor Summary |
Codec()
|
Codec(java.lang.String p)
|
Method Summary |
byte[] |
decode(byte[] src)
|
java.lang.String |
decode(java.lang.String str)
|
byte[] |
encode(byte[] src)
|
java.lang.String |
encode(java.lang.String str)
|
void |
setPassword(java.lang.String p)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Codec
public Codec()
Codec
public Codec(java.lang.String p)
throws java.lang.Exception
- Throws:
java.lang.Exception
setPassword
public void setPassword(java.lang.String p)
throws javax.faces.FacesException
- Parameters:
p
-
- Throws:
java.security.InvalidKeyException
java.io.UnsupportedEncodingException
java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
javax.faces.FacesException
decode
public java.lang.String decode(java.lang.String str)
throws java.lang.Exception
- Throws:
java.lang.Exception
encode
public java.lang.String encode(java.lang.String str)
throws java.lang.Exception
- Throws:
java.lang.Exception
decode
public byte[] decode(byte[] src)
throws java.lang.Exception
- Throws:
java.lang.Exception
encode
public byte[] encode(byte[] src)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2010. All Rights Reserved.