public static ByteSource bytes(String string) {
            return new SimpleByteSource(string);
        }
Returns a new {@code ByteSource} instance representing the specified string's bytes.  The byte
array is obtained assuming {@code UTF-8} encoding.

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