Solved

org.apache.catalina.realm.RealmBase.Digest question

Posted on 2007-04-04
2
1,034 Views
Last Modified: 2013-11-24
Digest

public static final java.lang.String Digest(java.lang.String credentials,
                                            java.lang.String algorithm,
                                            java.lang.String encoding)

    Digest password using the algorithm especificied and convert the result to a corresponding hex string. If exception, the plain credentials string is returned

    Parameters:
        credentials - Password or other credentials to use in authenticating this username
        algorithm - Algorithm used to do the digest
        encoding - Character encoding of the string to digest
/-------------------------------------------------------------------------------------------------------------------------------/

can anyone provide me with a sample code of how to use this method? tks
0
Comment
Question by:InNoCenT_Ch1ld
2 Comments
 
LVL 27

Accepted Solution

by:
Nopius earned 500 total points
ID: 18855801
Digest("users_password", "MD5", "ASCII") ?
0
 
LVL 3

Author Comment

by:InNoCenT_Ch1ld
ID: 18855911
aha, actually i found this out a couple minute ago...

tks anyway ;-)
have a nice day
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question