- All Implemented Interfaces:
Encoder<byte[],byte[]>
public final class HashEncoder
extends Object
implements Encoder<byte[],byte[]>
Implémentation des hachages.
L'encodage n'autorise pas les données null.
La fonction de décodage n'existe pas.
- Author:
- pchretien
-
Nested Class Summary
Nested Classes
static enum
Méthode de hashage autorisées.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HashEncoder
Constructor.
- Parameters:
hash - méthode de hashage
-
Method Details
-
encode
public byte[] encode(byte[] data)
Encodage.
- Specified by:
encode in interface Encoder<byte[],byte[]>
- Parameters:
data - Object à encoder
- Returns:
- Chaîne codée