de.bsvrz.dav.daf.communication.hmacmd5
Class AuthentificationHmacMD5
java.lang.Object
de.bsvrz.dav.daf.communication.lowLevel.AuthentificationProcess
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
Method Summary |
byte[] |
encrypt(String password,
String text)
Verschlüsselt den Text mit Hilfe des Passworts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthentificationHmacMD5
public AuthentificationHmacMD5()
- Erzeugt ein neues Objekt.
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 Passworttext
- den zu verschlüsselnden Text
- Returns:
- Das Ergebnis der Verschlüsselung oder
null
, wenn der Text nicht verschlüsselt werden konnte.