spring-framework / org.springframework.util / Base64Utils / decodeUrlSafe

decodeUrlSafe

open static fun decodeUrlSafe(src: ByteArray): ByteArray

Base64-decode the given byte array using the RFC 4648 "URL and Filename Safe Alphabet".

Parameters

src - the encoded byte array

Exceptions

IllegalStateException - if Base64 encoding between byte arrays is not supported, i.e. neither Java 8 nor Apache Commons Codec is present at runtime

Return
the original byte array

Since
4.2.4