|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.CertJUtils
This class provides methods that are useful to various
Cert-J operations, such as byte
array manipulations,
or Vector
manipulations.
Constructor Summary |
|
CertJUtils()
|
Method Summary |
|
static boolean |
byteArraysEqual(byte[] array1,
byte[] array2)
Checks if the contents of two byte arrays, array1 and array2, are equal. |
static boolean |
byteArraysEqual(byte[] array1,
int offset1,
int len1,
byte[] array2)
Checks if the contents of two byte arrays, array1 and array2, are equal. |
static boolean |
byteArraysEqual(byte[] array1,
int offset1,
int len1,
byte[] array2,
int offset2,
int len2)
Checks if the contents of two byte arrays, array1 and array2, are equal. |
static boolean |
compareExtensions(X509V3Extensions rule,
X509V3Extensions extensions)
Compares two groups of extensions to see if the first group of extensions is contained in the second. |
static boolean |
containsByteArray(Vector list,
byte[] byteArray)
Checks if list contains the |
static boolean |
containsExtension(X509V3Extension extension,
X509V3Extensions extensions)
Determines whether extensions contains the extension extension. |
static void |
intersectByteArrayLists(Vector dest,
Vector source)
Constructs the intersection of dest and source,
which are |
static void |
intersectLists(Vector dest,
Vector source)
Constructs the intersection of dest
and source, which are |
static void |
mergeLists(Vector dest,
Vector source)
Moves every entry in source to dest unless the entry is already in dest. |
static boolean |
sequencesEqual(Vector seq1,
Vector seq2)
Checks whether ordered sequences seq1 and seq2 are equal. |
static boolean |
setsEqual(Vector set1,
Vector set2)
Checks whether sets set1 and set2 are equal. |
static void |
subtractLists(Vector dest,
Vector source)
Removes any entry in dest that is also in source. |
static void |
uniteByteArrayLists(Vector dest,
Vector source)
Constructs the union of dest and source which
are |
static void |
uniteLists(Vector dest,
Vector source)
Constructs the union of dest
and source, which are |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CertJUtils()
Method Detail |
public static void mergeLists(Vector dest, Vector source)
Parameters
dest | A | ||
source | A |
public static void subtractLists(Vector dest, Vector source)
Parameters
dest | A | ||
source | A |
public static void intersectLists(Vector dest, Vector source)
byte
arrays that contain lists. The resulting list is
stored in dest.Parameters
dest | A | ||
source | A |
public static void uniteLists(Vector dest, Vector source)
byte
arrays that contain lists. The resulting list is
stored in dest.Parameters
dest | A | ||
source | A |
public static boolean byteArraysEqual(byte[] array1, byte[] array2)
Parameters
array1 | A | ||
array2 | A |
Returns
true
if the two byte
arrays
are equal, false
otherwise.public static boolean byteArraysEqual(byte[] array1, int offset1, int len1, byte[] array2)
Parameters
array1 | A | ||
offset1 | An | ||
len1 | An | ||
array2 | A |
Returns
true
if the two byte
arrays
are equal in size and contents, false
otherwise.public static boolean byteArraysEqual(byte[] array1, int offset1, int len1, byte[] array2, int offset2, int len2)
Parameters
array1 | A | ||
offset1 | An | ||
len1 | An | ||
array2 | A | ||
offset2 | An | ||
len2 | An |
Returns
true
if the two byte
arrays
are equal in size and contents, false
otherwise.public static boolean containsByteArray(Vector list, byte[] byteArray)
byte
array,
byteArray.Parameters
list | A | ||
byteArray | The |
Returns
true
if list
contains byteArray, false
otherwise.public static void intersectByteArrayLists(Vector dest, Vector source)
byte
arrays that contain lists. The resulting
list is stored in dest.Parameters
dest | A | ||
source | A |
public static void uniteByteArrayLists(Vector dest, Vector source)
byte
arrays that contain lists.
The result will be stored in dest.Parameters
dest | A | ||
source | A |
public static boolean sequencesEqual(Vector seq1, Vector seq2)
Parameters
seq1 | A | ||
seq2 | A |
Returns
true
if the two sequences
are equal, false
otherwise.public static boolean setsEqual(Vector set1, Vector set2)
Parameters
set1 | A | ||
set2 | A |
Returns
true
if the two sets are
equal, false
otherwise.public static boolean containsExtension(X509V3Extension extension, X509V3Extensions extensions)
equals
method between the
extension and each component of extensions.
Parameters
extension | An | ||
extensions | The |
Returns
true
if extension is contained in
extensions, false
otherwise.public static boolean compareExtensions(X509V3Extensions rule, X509V3Extensions extensions)
containsExtension
using each component of
rule and extensions as the arguments.Parameters
rule | An | ||
extensions | An |
Returns
true
If extensions contains all the
extensions in rule, false
otherwise.See Also
(com.rsa.certj.cert.extensions.X509V3Extension,
com.rsa.certj.cert.X509V3Extensions)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |