org.apache.jetspeed.security.spi.impl
Class MessageDigestCredentialPasswordEncoder

java.lang.Object
  extended by org.apache.jetspeed.security.spi.impl.MessageDigestCredentialPasswordEncoder
All Implemented Interfaces:
org.apache.jetspeed.security.spi.CredentialPasswordEncoder

public class MessageDigestCredentialPasswordEncoder
extends Object
implements org.apache.jetspeed.security.spi.CredentialPasswordEncoder

MessageDigestCredentialPasswordEncoder

Version:
$Id: MessageDigestCredentialPasswordEncoder.java 516448 2007-03-09 16:25:47Z ate $
Author:
Ate Douma

Field Summary
(package private)  MessageDigest digester
           
(package private)  boolean simpleEncryption
           
 
Constructor Summary
MessageDigestCredentialPasswordEncoder()
           
MessageDigestCredentialPasswordEncoder(boolean simpleEncryption)
           
MessageDigestCredentialPasswordEncoder(String algorithm)
           
MessageDigestCredentialPasswordEncoder(String algorithm, boolean simpleEncryption)
           
 
Method Summary
 String encode(String userName, String clearTextPassword)
           
 String getAlgorithm()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

simpleEncryption

boolean simpleEncryption

digester

MessageDigest digester
Constructor Detail

MessageDigestCredentialPasswordEncoder

public MessageDigestCredentialPasswordEncoder()
                                       throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

MessageDigestCredentialPasswordEncoder

public MessageDigestCredentialPasswordEncoder(boolean simpleEncryption)
                                       throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

MessageDigestCredentialPasswordEncoder

public MessageDigestCredentialPasswordEncoder(String algorithm)
                                       throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

MessageDigestCredentialPasswordEncoder

public MessageDigestCredentialPasswordEncoder(String algorithm,
                                              boolean simpleEncryption)
                                       throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException
Method Detail

getAlgorithm

public String getAlgorithm()

encode

public String encode(String userName,
                     String clearTextPassword)
              throws org.apache.jetspeed.security.SecurityException
Specified by:
encode in interface org.apache.jetspeed.security.spi.CredentialPasswordEncoder
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
CredentialPasswordEncoder.encode(java.lang.String, java.lang.String)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.