public class CryptoUtils<T> extends Object
| Constructor and Description |
|---|
CryptoUtils(org.jboss.aerogear.crypto.keys.PrivateKey privateKey,
byte[] iv,
Class<T> modelClass) |
CryptoUtils(org.jboss.aerogear.crypto.keys.PrivateKey privateKey,
byte[] iv,
Class<T> modelClass,
com.google.gson.GsonBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
T |
decrypt(byte[] data) |
Collection<T> |
decrypt(Collection<byte[]> encryptedCollection) |
byte[] |
encrypt(T item) |
public CryptoUtils(org.jboss.aerogear.crypto.keys.PrivateKey privateKey,
byte[] iv,
Class<T> modelClass)
public Collection<T> decrypt(Collection<byte[]> encryptedCollection)
public byte[] encrypt(T item)
public T decrypt(byte[] data)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.