Package com.iizix.push.vapid
Class Base64Encoder
- java.lang.Object
- com.iizix.push.vapid.Base64Encoder
public class Base64Encoder extends java.lang.Object
Java 7 compatible Base64 encode/decode functions. Based on Apache Commons Codec.Note: Once upgrading to Java 8+, replace by native Base64 encoder.
Constructor Summary
Constructors Constructor Description Base64Encoder()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
decode(java.lang.String base64Encoded)
static java.lang.String
encodeUrl(byte[] bytes)
static java.lang.String
encodeUrlWithoutPadding(byte[] bytes)
static java.lang.String
encodeWithoutPadding(byte[] bytes)
Method Detail
decode
public static byte[] decode(java.lang.String base64Encoded)
encodeWithoutPadding
public static java.lang.String encodeWithoutPadding(byte[] bytes)
encodeUrl
public static java.lang.String encodeUrl(byte[] bytes)
encodeUrlWithoutPadding
public static java.lang.String encodeUrlWithoutPadding(byte[] bytes)