Package com.scurrilous.circe.params
Class SimpleHashParameters
java.lang.Object
com.scurrilous.circe.params.SimpleHashParameters
- All Implemented Interfaces:
HashParameters
Hash parameters consisting only of an algorithm name. Includes instances
describing some commonly used algorithms.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleHashParametersRepresents the MD5 (128-bit) hash algorithm.static final SimpleHashParametersRepresents the SHA-1 (160-bit) hash algorithm.static final SimpleHashParametersRepresents the SHA-256 (256-bit) hash algorithm.static final SimpleHashParametersRepresents the SHA-384 (384-bit) hash algorithm.static final SimpleHashParametersRepresents the SHA-512 (512-bit) hash algorithm. -
Constructor Summary
ConstructorsConstructorDescriptionSimpleHashParameters(String algorithm) Constructs aSimpleHashParameterswith the given algorithm name. -
Method Summary
-
Field Details
-
MD5
Represents the MD5 (128-bit) hash algorithm. -
SHA1
Represents the SHA-1 (160-bit) hash algorithm. -
SHA256
Represents the SHA-256 (256-bit) hash algorithm. -
SHA384
Represents the SHA-384 (384-bit) hash algorithm. -
SHA512
Represents the SHA-512 (512-bit) hash algorithm.
-
-
Constructor Details
-
SimpleHashParameters
Constructs aSimpleHashParameterswith the given algorithm name.- Parameters:
algorithm- the name of the hash algorithm
-
-
Method Details
-
algorithm
Description copied from interface:HashParametersReturns the canonical name of the hash algorithm.- Specified by:
algorithmin interfaceHashParameters- Returns:
- the name of the hash algorithm
-
hashCode
public int hashCode() -
equals
-
toString
-