|
aerogear-crypto 0.1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.aerogear.crypto.Util
public class Util
Utility class for platform validation and cryptographic operations
| Field Summary | |
|---|---|
private static String |
ANDROID_ACTIVITY_CLASS
|
private static boolean |
IS_ANDROID
|
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static byte[] |
checkLength(byte[] data,
int size)
Validate the length of the data provided |
static int |
checkSize(int size,
int minimumSize)
Validate the minimum size supported by the parameter |
static String |
formatter(AeroGearCrypto.Algorithm algorithm,
AeroGearCrypto.Mode mode)
Utility method to format algorithms name in Java like way |
static String |
formatter(AeroGearCrypto.Mode mode,
AeroGearCrypto.Padding padding)
Utility method to format algorithms name in Java like way |
static boolean |
isAndroid()
Verify if the platform is running Android |
static byte[] |
newBuffer(int length)
Create a new buffer with the specified size |
static byte[] |
newByteArray(byte[] data)
Copy the provided data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final boolean IS_ANDROID
private static final String ANDROID_ACTIVITY_CLASS
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static byte[] checkLength(byte[] data,
int size)
data - size -
public static int checkSize(int size,
int minimumSize)
size - minimumSize -
public static String formatter(AeroGearCrypto.Algorithm algorithm,
AeroGearCrypto.Mode mode)
algorithm - mode -
public static String formatter(AeroGearCrypto.Mode mode,
AeroGearCrypto.Padding padding)
mode - padding -
public static byte[] newBuffer(int length)
length -
public static byte[] newByteArray(byte[] data)
data -
public static boolean isAndroid()
|
aerogear-crypto 0.1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||