tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: question about realm auth and digest attribute
Date Mon, 22 Sep 2008 21:14:58 GMT
Joe A wrote:
> in the docs it says "The value for this attribute must be one of the digest
> algorithms supported by the java.security.MessageDigest class (SHA, MD2, or
> MD5). "
> 
> so if i encrypt using the sha1 algorithm, do you know if i should specify
> sha1 or sha-1 or sha?

Is it really too much effort for you to look this up in the API docs
yourself? It took me less than a minute to find the JavaDoc for
java.security.MessageDigest and to follow the links to the list of
supported digests.

The 1.6 docs list the following:
MD2, MD5, SHA-1, SHA-256, SHA-384, SHA512

Alternatively you could have just tried digesting a password. You should
see an exception if you try digesting a password with an invalid digest alg.

Mark

> 
> thanks,
> joe
> 
> On Mon, Sep 22, 2008 at 3:06 PM, Mark Thomas <markt@apache.org> wrote:
> 
>> Joe A wrote:
>>> i'm talking about the part of configuration that lets you choose specify
>> how
>>> the passwords are stored in the users table.
>> To repeat my previous answer, any digest that is supported by the JVM you
>> are using is fine for this.
>>
>> Mark
>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message