Package org.artifactory.checksum
Class ChecksumInfo
java.lang.Object
org.artifactory.checksum.ChecksumInfo
- All Implemented Interfaces:
Serializable
Holds original and calculated values of a checksum.
- Author:
- Yossi Shaul
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionChecksumInfo
(ChecksumType type, String original, String actual) ChecksumInfo
(ChecksumType type, String original, String actual, boolean validateChecksum) -
Method Summary
-
Field Details
-
TRUSTED_FILE_MARKER
- See Also:
-
-
Constructor Details
-
ChecksumInfo
public ChecksumInfo() -
ChecksumInfo
-
ChecksumInfo
-
-
Method Details
-
getOriginal
- Returns:
- The client (original) checksum or the actual if the checksum is marked as trusted
-
getOriginalOrNoOrig
- Returns:
- Always returns the client (original) recorded checksum, even if it is org.artifactory.checksum .ChecksumInfo#TRUSTED_FILE_MARKER
-
checksumsMatch
public boolean checksumsMatch() -
isMarkedAsTrusted
public boolean isMarkedAsTrusted()Checks if the checksum is marked as trusted by Artifactory. For internal use only. -
isIdentical
Compares checksum by type and value. -
equals
Compares checksum by type only -
hashCode
public int hashCode() -
toString
-