de.bsvrz.dav.daf.communication.hmacmd5
Class AuthentificationHmacMD5

java.lang.Object
  extended by de.bsvrz.dav.daf.communication.lowLevel.AuthentificationProcess
      extended by de.bsvrz.dav.daf.communication.hmacmd5.AuthentificationHmacMD5

public class AuthentificationHmacMD5
extends AuthentificationProcess

Diese Klasse implementiert ein Verfahren zur Authentifizierung mittels der kryptographischen Hashfunktion MD5. Das Verfahren bildet aus einer Nachricht und einem geheimen Schlüssel eine Signatur, die über ein unsicheres Medium übertragen werden kann und vom Empfänger der Nachricht auf Echtheit überprüft werden kann. Das HMAC Verfahren kann mit verschiedenen Hashfunktionen benutzt werden. Hier wird es mit dem kryptographischen Verfahren MD5 verwendet.

Author:
Kappich Systemberatung

Field Summary
 
Fields inherited from class de.bsvrz.dav.daf.communication.lowLevel.AuthentificationProcess
name
 
Constructor Summary
AuthentificationHmacMD5()
          Erzeugt ein neues Objekt.
 
Method Summary
 byte[] encrypt(String password, String text)
          Verschlüsselt den Text mit Hilfe des Passworts.
 
Methods inherited from class de.bsvrz.dav.daf.communication.lowLevel.AuthentificationProcess
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthentificationHmacMD5

public AuthentificationHmacMD5()
Erzeugt ein neues Objekt.

Method Detail

encrypt

public final byte[] encrypt(String password,
                            String text)
Description copied from class: AuthentificationProcess
Verschlüsselt den Text mit Hilfe des Passworts.

Specified by:
encrypt in class AuthentificationProcess
Parameters:
password - das Passwort
text - den zu verschlüsselnden Text
Returns:
Das Ergebnis der Verschlüsselung oder null, wenn der Text nicht verschlüsselt werden konnte.