org.apache.fulcrum.crypto.impl
Class Base64

java.lang.Object
  extended byorg.apache.fulcrum.crypto.impl.Base64

public class Base64
extends java.lang.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)
           
 java.lang.Object decode(java.lang.Object pObject)
           
static byte[] decodeBase64(byte[] base64Data)
           
 byte[] encode(byte[] pArray)
           
 java.lang.Object encode(java.lang.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 java.lang.Object decode(java.lang.Object pObject)
                        throws java.lang.Exception
Throws:
java.lang.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 java.lang.Object encode(java.lang.Object pObject)
                        throws java.lang.Exception
Throws:
java.lang.Exception

encode

public byte[] encode(byte[] pArray)


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.