Class ByteSourceWrapper

java.lang.Object
org.apache.shiro.lang.util.ByteSourceWrapper
All Implemented Interfaces:
Closeable, AutoCloseable

public final class ByteSourceWrapper extends Object implements Closeable
To use try-with-resources idiom, this class supports wrapping existing ByteSource object or byte array. At end of try block, it gets zeroed out automatically.