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

        try {
            return new String(decoded, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            Logger.error("Failed to create string", e);
            return null;
        }
    }
/**
     * Generates a base 64 decoded string.
     *
     * @param encoded The encoded value.
     * @return The decoded string or null if it failed to be decoded.
     */
Generates a base 64 decoded string.
@param encoded The encoded value.
@return The decoded string or null if it failed to be decoded.
Generates a base 64 decoded string . @param encoded The encoded value . @return The decoded string or null if it failed to be decoded .
public static String base64DecodedString(String encoded) {
        byte[] decoded = base64Decode(encoded);
        if (decoded == null) {
            return null;
        }
        try {
            return new String(decoded, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            Logger.error("Failed to create string", e);
            return null;
        }
    }
public static String base64DecodedString ( String encoded ) { byte [ ] decoded = base64Decode ( encoded ) ; if ( decoded == null ) { return null ; } try { return new String ( decoded , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { Logger . error ( "Failed to create string" , e ) ; return null ; } }
Generates a base 64 decoded string.
Generates a base 64 decoded string .