| Package | Description |
|---|---|
| clientP2P | |
| protocolP2P |
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
ClientManagement.computeHashsum(java.lang.String filename,
HashAlgorithm h)
Compute Hashsum of a file.
|
| Modifier and Type | Field and Description |
|---|---|
private HashAlgorithm[] |
HashRequest.algoList |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.String,HashAlgorithm> |
HashAlgorithm.BY_NAME |
private java.util.Map<HashAlgorithm,byte[]> |
HashResponse.hashes |
| Modifier and Type | Method and Description |
|---|---|
protected static HashAlgorithm |
HashAlgorithm.fromName(java.lang.String name)
Gives enum from name.
|
HashAlgorithm[] |
HashRequest.getAlgoList()
AlgoList getter.
|
static HashAlgorithm |
HashAlgorithm.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HashAlgorithm[] |
HashAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
HashResponse.getHash(HashAlgorithm hashAlgo)
hash getter
|
| Constructor and Description |
|---|
HashRequest(java.lang.String filename,
HashAlgorithm[] algoList)
Constructor (typically used by the server) with a filename parameter.
|
| Constructor and Description |
|---|
HashResponse(java.lang.String filename,
java.util.Map<HashAlgorithm,byte[]> hashes)
Constructor (typically used by the server) with a filename parameter.
|