org.jboss.seam.security.digest
Class DigestUtils

java.lang.Object
  extended by org.jboss.seam.security.digest.DigestUtils

public class DigestUtils
extends Object

Digest-related utility methods, adapted from Acegi and Apache Commons.

Author:
Shane Bryzak

Constructor Summary
DigestUtils()
           
 
Method Summary
static String encodePasswordInA1Format(String username, String realm, String password)
           
static String generateDigest(boolean passwordAlreadyEncoded, String username, String realm, String password, String httpMethod, String uri, String qop, String nonce, String nc, String cnonce)
           
static String md5Hex(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestUtils

public DigestUtils()
Method Detail

generateDigest

public static String generateDigest(boolean passwordAlreadyEncoded,
                                    String username,
                                    String realm,
                                    String password,
                                    String httpMethod,
                                    String uri,
                                    String qop,
                                    String nonce,
                                    String nc,
                                    String cnonce)
                             throws IllegalArgumentException
Throws:
IllegalArgumentException

encodePasswordInA1Format

public static String encodePasswordInA1Format(String username,
                                              String realm,
                                              String password)

md5Hex

public static String md5Hex(String value)


Copyright © 2011 Seam Framework. All Rights Reserved.