Package | Description |
---|---|
org.apache.archiva.checksum | |
org.apache.archiva.converter.artifact | |
org.apache.archiva.metadata.model | |
org.apache.archiva.transaction |
Modifier and Type | Method and Description |
---|---|
ChecksumAlgorithm |
ChecksumReference.getAlgorithm() |
ChecksumAlgorithm |
UpdateStatus.getAlgorithm()
Return the algorithm, this status is assigned to.
|
ChecksumAlgorithm |
Checksum.getAlgorithm() |
static ChecksumAlgorithm |
ChecksumAlgorithm.getByExtension(Path file) |
static ChecksumAlgorithm |
ChecksumAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChecksumAlgorithm[] |
ChecksumAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static List<ChecksumAlgorithm> |
ChecksumUtil.getAlgorithms(List<String> checksumTypes)
Returns the list of configured checksum types.
|
Modifier and Type | Method and Description |
---|---|
String |
ChecksummedFile.calculateChecksum(ChecksumAlgorithm checksumAlgorithm)
Calculate the checksum based on a given checksum.
|
UpdateStatusList |
ChecksummedFile.fixChecksum(ChecksumAlgorithm algorithm) |
Path |
ChecksummedFile.getChecksumFile(ChecksumAlgorithm checksumAlgorithm)
Get the checksum file for the reference file and hash.
|
UpdateStatus |
UpdateStatusList.getStatus(ChecksumAlgorithm algorithm) |
boolean |
ChecksummedFile.isValidChecksum(ChecksumAlgorithm algorithm)
Given a checksum file, check to see if the file it represents is valid according to the checksum.
|
boolean |
ChecksummedFile.isValidChecksum(ChecksumAlgorithm algorithm,
boolean throwExceptions) |
String |
ChecksummedFile.parseChecksum(Path checksumFile,
ChecksumAlgorithm checksumAlgorithm,
String fileName,
Charset encoding)
Parse a checksum string.
|
ChecksumFileContent |
ChecksummedFile.parseChecksumFile(Path checksumFile,
ChecksumAlgorithm checksumAlgorithm,
Charset encoding) |
void |
ChecksumReference.setAlgorithm(ChecksumAlgorithm algorithm) |
void |
UpdateStatusList.setErrorStatus(ChecksumAlgorithm algorithm,
Throwable e) |
void |
UpdateStatusList.setStatus(ChecksumAlgorithm algorithm,
int status) |
void |
UpdateStatusList.setStatus(ChecksumAlgorithm algorithm,
UpdateStatus status) |
Path |
ChecksummedFile.writeFile(ChecksumAlgorithm checksumAlgorithm)
Writes a checksum file for the referenceFile.
|
Modifier and Type | Method and Description |
---|---|
UpdateStatusList |
ChecksummedFile.fixChecksums(List<ChecksumAlgorithm> algorithms)
Writes a checksum file, if it does not exist or if it exists and has a different
checksum value.
|
static UpdateStatusList |
UpdateStatusList.INITIALIZE(List<ChecksumAlgorithm> algorithms) |
static List<Checksum> |
ChecksumUtil.initializeChecksums(Path file,
List<ChecksumAlgorithm> checksumAlgorithms) |
boolean |
ChecksummedFile.isValidChecksums(List<ChecksumAlgorithm> algorithms)
Of any checksum files present, validate that the reference file conforms
the to the checksum.
|
boolean |
ChecksummedFile.isValidChecksums(List<ChecksumAlgorithm> algorithms,
boolean throwExceptions)
Checks if the checksum files are valid for the referenced file.
|
static List<Checksum> |
ChecksumUtil.newChecksums(List<ChecksumAlgorithm> checksumAlgorithms) |
static void |
StreamingChecksum.updateChecksums(InputStream input,
List<ChecksumAlgorithm> algorithms,
List<OutputStream> checksumOutput) |
Constructor and Description |
---|
Checksum(ChecksumAlgorithm checksumAlgorithm) |
UpdateStatus(ChecksumAlgorithm algorithm) |
UpdateStatus(ChecksumAlgorithm algorithm,
int status) |
UpdateStatus(ChecksumAlgorithm algorithm,
Throwable error) |
Modifier and Type | Method and Description |
---|---|
List<ChecksumAlgorithm> |
LegacyToDefaultConverter.getDigesters() |
Modifier and Type | Method and Description |
---|---|
void |
LegacyToDefaultConverter.setDigesters(List<ChecksumAlgorithm> digesters) |
Modifier and Type | Method and Description |
---|---|
Map<ChecksumAlgorithm,String> |
ArtifactMetadata.getChecksums() |
Set<ChecksumAlgorithm> |
ArtifactMetadata.getChecksumTypes() |
Modifier and Type | Method and Description |
---|---|
String |
ArtifactMetadata.getChecksum(ChecksumAlgorithm checksumAlgorithm) |
void |
ArtifactMetadata.setChecksum(ChecksumAlgorithm algorithm,
String checksumValue) |
Modifier and Type | Method and Description |
---|---|
void |
ArtifactMetadata.setChecksums(Map<ChecksumAlgorithm,String> checksums) |
Modifier and Type | Method and Description |
---|---|
protected List<ChecksumAlgorithm> |
AbstractTransactionEvent.getChecksumAlgorithms() |
Modifier and Type | Method and Description |
---|---|
protected String |
AbstractTransactionEvent.getChecksumFileExtension(ChecksumAlgorithm algorithm)
File extension for checksums
TODO should be moved to plexus-digester ?
|
Modifier and Type | Method and Description |
---|---|
void |
FileTransaction.copyFile(Path source,
Path destination,
List<ChecksumAlgorithm> checksumAlgorithms) |
void |
FileTransaction.createFile(String content,
Path destination,
List<ChecksumAlgorithm> checksumAlgorithms) |
Constructor and Description |
---|
AbstractTransactionEvent(List<ChecksumAlgorithm> checksumAlgorithms) |
CopyFileEvent(Path source,
Path destination,
List<ChecksumAlgorithm> checksumAlgorithms) |
CreateFileEvent(String content,
Path destination,
List<ChecksumAlgorithm> checksumAlgorithms) |
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.