AXL RADIUS Server API V3

com.theorem.radserver3.radutil
Class MD5Digest

Object
  extended byMD5Digest

public class MD5Digest
extends Object

Wrapper for the MD5 Digest. It eliminates the try - catch code for something that should always exist.

If the MD5 algorithm cannot be found (highly unlikely) the digest methods will throw NullPointerExceptions.


Field Summary
static int DIGEST_LENGTH
          Digest length - 16;
 
Constructor Summary
MD5Digest()
           
 
Method Summary
static MessageDigest get()
          Get an instance of the MD5 digest.
static MessageDigest get(Provider provider)
          Get an instance of the MD5 digest.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIGEST_LENGTH

public static final int DIGEST_LENGTH
Digest length - 16;

See Also:
Constant Field Values
Constructor Detail

MD5Digest

public MD5Digest()
Method Detail

get

public static MessageDigest get()
Get an instance of the MD5 digest.

Returns:
MD5 MessageDigest.

get

public static MessageDigest get(Provider provider)
Get an instance of the MD5 digest.

Parameters:
provider - Security provider.
Returns:
MD5 MessageDigest.

AXL RADIUS Server API V3

Submit a bug report or feature request

Copyright 1998-2008 AXL Software. PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.