public class Utils
extends java.lang.Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static Pointer |
getPointerFromData(byte[] data) |
static java.util.Date |
parseTime(char[] timeChars)
Parse a time character array as defined in PKCS#11 and return is as a
Date object.
|
static char[] |
toCharArray(int number,
int exactArrayLength)
Converts the given number into a char-array.
|
public static Pointer getPointerFromData(byte[] data)
public static java.util.Date parseTime(char[] timeChars)
timeChars - A time encoded as character array as specified in PKCS#11.public static char[] toCharArray(int number,
int exactArrayLength)
number - The number to convert to a char array.exactArrayLength - The exact length of the returned array.Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.