org.eclipse.paho.client.mqttv3.internal.security
Class SimpleBase64Encoder
java.lang.Object
org.eclipse.paho.client.mqttv3.internal.security.SimpleBase64Encoder
public class SimpleBase64Encoder
- extends Object
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 |
SimpleBase64Encoder
public SimpleBase64Encoder()
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.