public static byte [ ] encodeURLWithoutPadding ( byte [ ] src ) { return src == null ? null : Base64 . getUrlEncoder ( ) . withoutPadding ( ) . encode ( src ) ; }
Encodes a byte array to base64 URL format .