public static ByteSource bytes(byte[] bytes) {
            return new SimpleByteSource(bytes);
        }
Returns a new {@code ByteSource} instance representing the specified byte array.

@param bytes the bytes to represent as a {@code ByteSource} instance.
@return a new {@code ByteSource} instance representing the specified byte array.
src/main/java/org/apache/shiro/lang/util/ByteSource.java