public byte[] sign(final byte[] value) {
        return Unchecked.supplier(() -> {
            val base64 = EncodingUtils.encodeUrlSafeBase64(value);
            return sign(base64, true).getBytes(StandardCharsets.UTF_8);
        }).get();
    }
Sign byte array.

@param value the value
@return the byte []
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/jwt/JsonWebTokenSigner.java