PAJES 2.3.9

org.pajes.util
Class Base64Decoder

java.lang.Object
  extended byorg.pajes.util.Base64Decoder

public class Base64Decoder
extends java.lang.Object

Base64 decoding utility.


Method Summary
static byte[] decode(byte[] base64EncodedValue)
          Accepts an array of bytes that were encoded using Base64 and returns the decoded byte array.
static byte[] decode(java.lang.String base64EncodedValue)
          Accepts a Base64 encoded string and returns the decoded byte array.
static void main(java.lang.String[] args)
          Accepts a String argument from the command line and returns the Base64 decoded value to System.out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static byte[] decode(byte[] base64EncodedValue)
Accepts an array of bytes that were encoded using Base64 and returns the decoded byte array.

Parameters:
base64EncodedValue - the byte array encoded using Base64.
Returns:
the decoded array of bytes.
Throws:
UtilityException - if an error occurs decoding the value.

decode

public static byte[] decode(java.lang.String base64EncodedValue)
Accepts a Base64 encoded string and returns the decoded byte array.

Parameters:
base64EncodedValue - the string encoded using Base64.
Returns:
the decoded array of bytes.

main

public static void main(java.lang.String[] args)
Accepts a String argument from the command line and returns the Base64 decoded value to System.out.

Parameters:
args - the string to be decoded.

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.