01: /* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
02: *
03: * Licensed under the Apache License, Version 2.0 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software
10: * distributed under the License is distributed on an "AS IS" BASIS,
11: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: * See the License for the specific language governing permissions and
13: * limitations under the License.
14: */
15: package org.acegisecurity.providers.encoding;
16:
17: /**
18: * <p>MD5 implementation of PasswordEncoder.</p>
19: * <p>If a <code>null</code> password is presented, it will be treated as an empty <code>String</code> ("")
20: * password.</p>
21: * <P>As MD5 is a one-way hash, the salt can contain any characters.</p>
22: *
23: * This is a convenience class that extends the
24: * {@link MessageDigestPasswordEncoder} and passes MD5 as the algorithm to use.
25: *
26: * @author Ray Krueger
27: * @author colin sampaleanu
28: * @author Ben Alex
29: * @version $Id: Md5PasswordEncoder.java 1527 2006-05-31 03:03:18Z raykrueger $
30: */
31: public class Md5PasswordEncoder extends MessageDigestPasswordEncoder {
32:
33: public Md5PasswordEncoder() {
34: super ("MD5");
35: }
36: }
|