net.sf.doolin.util
Class CodecUtils

java.lang.Object
  extended by net.sf.doolin.util.CodecUtils

public class CodecUtils
extends Object

Codec method

Author:
Damien Coraboeuf

Method Summary
static byte[] decodeBase64(String s)
          Decode using Base 64
static char[] decodeCharsBase64(String s)
          Decode a password that has been encoded using Base64
static String encodeBase64(byte[] bytes)
          Encode using Base 64
static String encodeCharsBase64(char[] password)
          Encode a given password using Base64
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encodeBase64

public static String encodeBase64(byte[] bytes)
Encode using Base 64

Parameters:
bytes - Bytes to encode
Returns:
Encoded bytes as a string

decodeBase64

public static byte[] decodeBase64(String s)
Decode using Base 64

Parameters:
s - String to decode
Returns:
Decoded bytes

encodeCharsBase64

public static String encodeCharsBase64(char[] password)
Encode a given password using Base64

Parameters:
password - Password to encode
Returns:
Encoded password

decodeCharsBase64

public static char[] decodeCharsBase64(String s)
Decode a password that has been encoded using Base64

Parameters:
s - Encoded password
Returns:
Decoded password
See Also:
encodeCharsBase64(char[])


Copyright © 2011. All Rights Reserved.