Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sourceforge.jsurveyor
Class PasswordService

    java.lang.Object
      net.sourceforge.jsurveyor.PasswordService

public final class PasswordService
extends java.lang.Object

Singleton class that handles the encryption of passwords.

Version:
  1.0
Author:
  Claus Methmann Christensen, Anders Spliid Hansen, Esben Iversen Hansen, Lars H Jensen, Marcus Overheu, Thomas Ramdal, Peter Thomsen

Constructor Summary
`PasswordService()`

Method Summary
`java.lang.String` | `encrypt(java.lang.String plaintext)` Encrypts the String passed as argument using SHA encryption.
`static PasswordService` | `getInstance()` Method that returns a singleton instance of this class.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PasswordService

    public PasswordService()

Method Detail

### encrypt

    public java.lang.String encrypt(java.lang.String plaintext)

  Encrypts the String passed as argument using SHA encryption.

  Parameters:
    `plaintext` - String
  Returns:
    String
  PRE condition:
    none

### getInstance

    public static PasswordService getInstance()

  Method that returns a singleton instance of this class. If the class was already instantiated, this instantiation is returned.

  Returns:
    instance PasswordService
  PRE condition:
    none

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD