public static String encodeStringURL(byte[] source, boolean wrap) {
        return Encoder.encodeString(source, 0, source.length, wrap, true);
    }
public static String encodeStringURL ( byte [ ] source , boolean wrap ) { return Encoder . encodeString ( source , 0 , source . length , wrap , true ) ; }
Encodes a fixed and complete byte array into a Base64url String.

<p>This method is only useful for applications which require a String and have all data to be encoded up-front.
Note that byte arrays or buffers are almost always a better storage choice. They consume half the memory and
can be reused (modified). In other words, it is almost always better to use {@link #encodeBytes},
{@link #createEncoder}, or {@link #createEncoderOutputStream} instead.
instead.

@param source the byte array to encode from
@param wrap whether or not to wrap the output at 76 chars with CRLFs
@return a new String representing the Base64url output