Example usage for org.apache.shiro.util ByteSource interface-usage

List of usage examples for org.apache.shiro.util ByteSource interface-usage

Introduction

In this page you can find the example usage for org.apache.shiro.util ByteSource interface-usage.

Usage

From source file annis.security.SerializableByteSource.java

/**
 * A wrapper around {@link SimpleByteSource} to make it {@link Serializable}
 * @author Thomas Krause <krauseto@hu-berlin.de>
 */
public class SerializableByteSource implements ByteSource, Serializable {

From source file com.rencw.framework.shiro.SimpleByteSource.java

/**
 * Very simple {@link ByteSource ByteSource} implementation that maintains an internal {@code byte[]} array and uses the
 * {@link Hex Hex} and {@link Base64 Base64} codec classes to support the
 * {@link #toHex() toHex()} and {@link #toBase64() toBase64()} implementations.
 * <p/>
 * The constructors on this class accept the following implicit byte-backed data types and will convert them to

From source file com.sanweibook.lingdu.shiro.util.MySimpleByteSource.java

/**
 * Created by twg on 16/11/7.
 */
public class MySimpleByteSource implements ByteSource, Serializable {
    private final byte[] bytes;
    private String cachedHex;