Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.jce.util
Class Util  view Util download Util.java

java.lang.Object
  extended bycryptix.jce.util.Util

public final class Util
extends java.lang.Object

Misc utility methods.

Version:
$Revision: 1.5 $

Field Summary
private static char[] HEX_DIGITS
           
 
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
 

Field Detail

HEX_DIGITS

private static final char[] HEX_DIGITS
Constructor Detail

Util

private Util()
Method Detail

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.