urbanairship-core/src/main/java/com/urbanairship/util/UAStringUtil.java
public static byte[] base64Decode(String encoded) {
        if (UAStringUtil.isEmpty(encoded)) {
            return null;
        }

        // Decode it
        try {
            return Base64.decode(encoded, Base64.DEFAULT);
        } catch (IllegalArgumentException e) {
            Logger.verbose("Failed to decode string: " + encoded);
            return null;
        }
    }
/**
     * Base64 decodes a string.
     *
     * @param encoded The base64 encoded string.
     * @return The decoded bytes or null if it failed to be decoded.
     */
Base64 decodes a string.
@param encoded The base64 encoded string.
@return The decoded bytes or null if it failed to be decoded.
Base64 decodes a string . @param encoded The base64 encoded string . @return The decoded bytes or null if it failed to be decoded .
public static byte[] base64Decode(String encoded) {
        if (UAStringUtil.isEmpty(encoded)) {
            return null;
        }
        try {
            return Base64.decode(encoded, Base64.DEFAULT);
        } catch (IllegalArgumentException e) {
            Logger.verbose("Failed to decode string: " + encoded);
            return null;
        }
    }
public static byte [ ] base64Decode ( String encoded ) { if ( UAStringUtil . isEmpty ( encoded ) ) { return null ; } try { return Base64 . decode ( encoded , Base64 . DEFAULT ) ; } catch ( IllegalArgumentException e ) { Logger . verbose ( "Failed to decode string: " + encoded ) ; return null ; } }
Base64 decodes a string.
Base64 decodes a string .
// Decode it