org.eclipse.paho.client.mqttv3.internal.security
Class SimpleBase64Encoder

java.lang.Object
  extended by org.eclipse.paho.client.mqttv3.internal.security.SimpleBase64Encoder

public class SimpleBase64Encoder
extends Object


Constructor Summary
SimpleBase64Encoder()
           
 
Method Summary
static byte[] decode(String string)
           
static String encode(byte[] bytes)
          Encodes an array of byte into a string of printable ASCII characters using a base-64 encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBase64Encoder

public SimpleBase64Encoder()
Method Detail

encode

public static String encode(byte[] bytes)
Encodes an array of byte into a string of printable ASCII characters using a base-64 encoding.

Parameters:
bytes - The array of bytes to e encoded
Returns:
The encoded array.

decode

public static byte[] decode(String string)


Copyright © 2013. All Rights Reserved.