java.lang.Object
cryptix.jce.util.Util
- public final class Util
- extends java.lang.Object
Misc utility methods.
- Version:
- $Revision: 1.5 $
Constructor Summary |
private |
Util()
|
Method Summary |
static boolean |
equals(byte[] a,
byte[] b)
Compare two byte[] for equality. |
static java.lang.String |
toString(byte[] ba)
Convert the given byte[] to a String with it's hexadecimal
representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HEX_DIGITS
private static final char[] HEX_DIGITS
Util
private Util()
equals
public static boolean equals(byte[] a,
byte[] b)
- Compare two byte[] for equality. byte[]s are considered equal if they
have the same length and the same contents (same elems, same order).
Additionally, two null arguments compare equal too.
toString
public static java.lang.String toString(byte[] ba)
- Convert the given byte[] to a String with it's hexadecimal
representation. This function doesn't like a null argument.