org.apache.fulcrum.crypto.impl
Class Base64

java.lang.Object
  extended by org.apache.fulcrum.crypto.impl.Base64

public class Base64
extends Object

Base64 encoder/decoder taken from commons-codec. Copying and wasting the code allows to minimize the dependencies.

Author:
Siegfried Goeschl

Constructor Summary
Base64()
           
 
Method Summary
 byte[] decode(byte[] pArray)
           
 Object decode(Object pObject)
           
static byte[] decodeBase64(byte[] base64Data)
           
 byte[] encode(byte[] pArray)
           
 Object encode(Object pObject)
           
static byte[] encodeBase64(byte[] binaryData)
           
static byte[] encodeBase64(byte[] binaryData, boolean isChunked)
           
static byte[] encodeBase64Chunked(byte[] binaryData)
           
static boolean isArrayByteBase64(byte[] arrayOctect)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

isArrayByteBase64

public static boolean isArrayByteBase64(byte[] arrayOctect)

encodeBase64

public static byte[] encodeBase64(byte[] binaryData)

encodeBase64Chunked

public static byte[] encodeBase64Chunked(byte[] binaryData)

decode

public Object decode(Object pObject)
              throws Exception
Throws:
Exception

decode

public byte[] decode(byte[] pArray)

encodeBase64

public static byte[] encodeBase64(byte[] binaryData,
                                  boolean isChunked)

decodeBase64

public static byte[] decodeBase64(byte[] base64Data)

encode

public Object encode(Object pObject)
              throws Exception
Throws:
Exception

encode

public byte[] encode(byte[] pArray)


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.