Skip to content

Instantly share code, notes, and snippets.

View glad2121's full-sized avatar

ITO Yoshiichi (GLAD!!) glad2121

View GitHub Profile
package example;
import org.apache.commons.beanutils.expression.DefaultResolver;
public class SafeResolver extends DefaultResolver {
@Override
public String next(String expression) {
String property = super.next(expression);
if ("class".equalsIgnoreCase(property)) {
@ogis-ito
ogis-ito / EncryptUtils.java
Created May 26, 2014 11:29
EncryptUtils.java
package sandbox;
import java.io.ByteArrayOutputStream;
import java.nio.charset.Charset;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
public class EncryptUtils {